-
Notifications
You must be signed in to change notification settings - Fork 354
Caveats (1.x)
Mike Daines edited this page May 14, 2018
·
1 revision
When used in Viz.js, Graphviz only knows about font metrics for Courier, Times, Helvetica, and Arial, even though it will include other font names in its output if they are specified. When another font name is specified, Graphviz will fall back to using the metrics for Times. This can result in a label being drawn outside of its node.
If you would like to use other fonts, one workaround is to choose a font with similar metrics to Times and to add extra space around labels using the margin
attribute.