|Due to organizational changes, the Graphviz web site will see some modifications in the near future. In particular, it will probably no longer provide binary packages for Windows and Macs. The latter can be obtained via Macports or Home Brew. If someone wants to set up Appveyor for Windows, we would be grateful.|
I have "Font not found" errors, or text labels missing in webdot.
Firstly, recent versions of graphviz will use fontconfig if it is available on your platform. With fontconfig, this error should not occur, so you may want to see if an upgrade to graphviz is available, or if a rebuild will add fontconfig support.
If fontconfig is not available then graphviz tries to resolve fontnames to fontpaths itself, and uses DOTFONTPATH (or GDFONTPATH) to indicate where it should look.
For copyright reasons, Graphviz doesn't come with its own fonts. On a Windows machine, it knows to search in C:\Windows\Fonts. On a Unix machine, you need to set up a directory that contains Truetype fonts. You can get a copy of some fonts here.
The default DOTFONTPATH is:
#define DEFAULT_FONTPATH "/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1"
If your fonts are somewhere else, then you must set that directory in the webdot script, or recompile Graphviz with the correct DEFAULT_FONTPATH (or set fontpath="/your/font/directory" in every graph you lay out, but that's pretty clumsy.)
You can also try to comment the line #set SIGNATURE "Graph by WebDot" in /var/www/cgi-bin/webdot It's work for me and one other person from the ML
GraphvizWiki: FaqFontNotFound (last edited 2008-06-10 19:49:52 by lns-bzn-51f-62-147-205-149)
2 days 9 hours ago
- win64 notes
4 days 15 hours ago
- The Mountain Lion version at
5 days 10 hours ago
- If I understand your
1 week 10 hours ago
- The path should contain
1 week 10 hours ago
- no code in released version counts flat edge crossings
1 week 12 hours ago
1 week 1 day ago
- Alas, the problem has a
1 week 3 days ago
- Thanks for your answer. That
2 weeks 14 hours ago
- Take a look
2 weeks 22 hours ago