Closed reregaga closed 1 year ago
I think this problem is due to the graph being rendered with access to certain fonts, while being viewed without access to the same fonts. See https://gitlab.com/graphviz/graphviz/-/issues/1891 or https://github.com/mdaines/viz.js/issues/81 for similar problems.
In any case, it's most certainly not a problem in d3-graphviz itself so I'm closing this issue now. Please feel free to reopen if you disagree.
Script:
Link to editor Result:
If you change fontname
Arial
tosans-serif
, result:If you run
dot -Tpng i.gv -o o.png
, it works as expected in both cases: