Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167896 - media-gfx/graphviz-2.12 error -- fontconfig: Didn't find expected font family
Summary: media-gfx/graphviz-2.12 error -- fontconfig: Didn't find expected font family
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-21 18:26 UTC by Alexander Marks
Modified: 2007-12-16 22:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for graphviz 2.12 to fix "font not found" issues (graphviz-2.12.ebuild,5.15 KB, text/plain)
2007-04-11 11:35 UTC, Eric Westbrook
Details
patch against recent ebuild (graphviz-2.12.ebuild.patch,718 bytes, patch)
2007-11-21 21:48 UTC, Chris Bandy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Marks 2007-02-21 18:26:38 UTC
Whenever I use graphviz (2.12) I get a long string of these errors:

fontconfig: Didn't find expected font family. Perhaps URW Type 1 fonts need installing?

SVG output looks fine, but bitmap output looks very ugly, and use some default X font instead. The error appears regardless of the output setting. I do have Type1 fonts installed.

Reproducible: Always

Steps to Reproduce:
Comment 1 Daniele Varrazzo 2007-03-11 01:38:14 UTC
Confirm inability of graphviz 2.12 to locate font. Running dot -v on a graph containing fontname="Helvetica" the following log is printed:

    dot: fontname "Helvetica" resolved to "[internal arial]"

version 2.8 printed instead:

    dot: fontname=Helvetica fontpath=/usr/share/fonts/default/ghostscript/n019003l.afm

The graph in 2.12 is generated with a low res monotype font instead of the required one.
Comment 2 Eric Westbrook 2007-03-28 17:49:04 UTC
Same symptom here, and here's some potentially helpful info:  It doesn't appear that graphviz is (properly/at all) linked against fontconfig:

  # ldd `which dot`
        linux-gate.so.1 =>  (0xb7f6f000)
        libgvc.so.3 => /usr/lib/libgvc.so.3 (0xb7ef9000)
        libgraph.so.3 => /usr/lib/libgraph.so.3 (0xb7eef000)
        libcdt.so.3 => /usr/lib/libcdt.so.3 (0xb7eea000)
        libpathplan.so.3 => /usr/lib/libpathplan.so.3 (0xb7ee2000)
        libm.so.6 => /lib/libm.so.6 (0xb7ebd000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7e9e000)
        libz.so.1 => /lib/libz.so.1 (0xb7e8c000)
        libltdl.so.3 => /usr/lib/libltdl.so.3 (0xb7e86000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7e82000)
        libc.so.6 => /lib/libc.so.6 (0xb7d5e000)
        /lib/ld-linux.so.2 (0xb7f70000)
Comment 3 Eric Westbrook 2007-04-11 11:33:29 UTC
I've found a fix to propose for this issue.  I created an overlay ebuild for graphviz-2.12 and changed --with-libgd to --with-mylibgd (directing graphviz to use its own gd library over any system libgd), and added --with-fontconfig as well.  Now graphviz finds the fonts successfully via fontconfig.  Attached below is the modified ebuild.  Since it now prefers its internal gd library to any system libgd, I've also removed the dependency on media-libs/gd.  Please review and advise.
Comment 4 Eric Westbrook 2007-04-11 11:35:36 UTC
Created attachment 115961 [details]
Ebuild for graphviz 2.12 to fix "font not found" issues

Adjusted ebuild as described above.
Comment 5 Bodo Graumann 2007-05-14 15:24:26 UTC
works fine for me
thank you very much
Comment 6 Stephen Newell 2007-05-24 14:48:51 UTC
The new ebuild also works for me (I had this problem with the images generated by doxygen).  Great work!
Comment 7 Daniele Varrazzo 2007-10-20 15:50:45 UTC
The attached ebuild worked as expected. Is it going to replace the broken 2.12?
Comment 8 Chris Bandy 2007-11-21 21:48:16 UTC
Created attachment 136640 [details, diff]
patch against recent ebuild

Confirm behavior described in comment #1.
Fixed using this small patch based on comment #3.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2007-12-16 22:47:38 UTC
Fixed in 2.16.1