Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions graph-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ window.onload = function()
.append("svg:svg")
.attr("class", "graphdiagram");

d3.xhr("/Lato-base64.txt", function(data) {
var result = data.response;
d3.select("#canvas svg").insert("style", "g").html("@font-face { font-family: \"Lato\"; font-style: normal; font-weight: 400; src: url(\"data:font/truetype;charset=utf-8;base64," + result + "\");}");
});

var diagram = gd.diagram()
.scaling(gd.scaling.centerOrScaleDiagramToFitSvg)
.overlay(function(layoutModel, view) {
Expand Down
2 changes: 1 addition & 1 deletion style/graph-style-chunky.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.graph-diagram-markup {
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
font-family: 'Lato', "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}

.graph-diagram-markup .node {
Expand Down