Description of problem: I've installed RPM: graphviz-2.8-3.fc5.i386 It's seem graphviz isn't able to find fonts specified via "fontname" attribute. E.g., if you specifiy in a DOT file: N1 [ ... fontname="Helvetica", ... ] You get the error: Error: Could not find/open font : Helvetica in /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:/usr/common/share/fonts/ttf Even setting env variables like DOTFONTPATH or GDFONTPATH or using other fonts ("Times Roman", "Courier", "Bitstream Vera", ...) the problem remains. However, installing "official" RPM (i.e. RPM downloaded from graphviz site): graphviz.i386 0:2.8-1.fc5 graphviz-cairo.i386 0:2.8-1.fc5 all works. So I think graphviz FC5-Extras version has a problem Another related problem is every time I "yum-update", yum says to me I should update graphviz with the FC5-Extras version since it's version number is higher (2.8-3) than the official one (2.8-1). Version-Release number of selected component (if applicable): 2.8-3.fc5.i386 How reproducible: You need the graphviz FC5-Extras RPM installed. Then you have to create a DOT file like the one attached to this report. Finally, you execute the DOT command to generate, for instance, a PNG image. Steps to Reproduce: 1. Create a DOT file named "myfile.dot" and set the "fontname" node attribute to "Helvetica" (alternatively, you can use attached file). 2. Execute this command: dot -Tpng myfile.dot >myfile.png 3. You can try to download the "official" (stable) RPM for comparing the behaviour Actual results: After executing the DOT command you get the following error: Error: Could not find/open font : Helvetica in /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:/usr/common/share/fonts/ttf The PNG image is generated, but with a different font (probably the default one). Expected results: No error reported by DOT command and all text in the generated image file with the right font face. Additional info:
Created attachment 132122 [details] A sample DOT file to reproduce the problem
Latest upgrade graphviz-2.8-4.fc5 (just appeared in repositories) appears to fix this. I can't duplicate this error with the new package.
I admit, I'm going to be rather amused if I _accidentally_ fixed this bug.
(In reply to comment #3) > I admit, I'm going to be rather amused if I _accidentally_ fixed this bug. I suspect it was a side-effect (rather like the missing /usr/bin/lefty) of fixing the package's broken spec file. Try and reproduce it yourself, you shouldn't be able to...
As I don't have any data to pump into graphviz (and wouldn't know it if the results looked correct), I'll take your word for it. You know the app better than I. Taking ownership of bug and closing it out. Thanks again, Alex.
There is an attachment below that you simply save and pump into dot using the command line mentioned in comment #0, but only if you're curious. ;) (By the way, shouldn't we move Oliver to the Cc field, just in case, since the package isn't officially orphaned? I've seen other maintainers do that.)