W3cubDocs

/Graphviz

fontpath

Directory list used by libgd to search for bitmap fonts

type: string, default: <system-dependent>

Used if Graphviz was not built with the fontconfig library.

If fontpath is not set, the environment variable DOTFONTPATH is checked.

If DOTFONTPATH is not set, GDFONTPATH is checked.

If GDFONTPATH not set, libgd uses its compiled-in font path.

Note that fontpath is an attribute of the root graph.

Valid on:
  • Graphs

© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/fontpath/