|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)
- Smyrna is a reasonably good
3 hours 56 min ago
- You shouldn't need any
7 hours 17 min ago
- very difficult to know which labels refer to which edge
20 hours 54 min ago
- The vertical differences
1 day 23 hours ago
- Just looking at the width,
2 days 2 hours ago
- Thanks for those inputs,
2 days 9 hours ago
- out of memory?
2 days 21 hours ago
- First post is edited with
2 days 22 hours ago
- What output format are you
2 days 22 hours ago
- I copied your graph into
3 days 40 min ago