GNOME Bugzilla – Bug 143246
Can not find Avant Garde -font family
Last modified: 2004-12-22 21:47:04 UTC
A Debian user reported missing PostScript fonts when using old dia files containing references to e.g. avantgarde. One gets warnings like: ** (dia:8851): WARNING **: Couldn't find font family for avantgarde See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=250952 there's an example attached.
Avantgarde isn't a standard PostScript font (there's only 13 that are standard). However, helvetica is, and should be recognized. Problem in this case is simply that the font names were lowercase in the diagram, and we didn't do a caseless compare. You can fix at least some of the problems by changing the font names to capitalization that matches that of the list in the bottom of lib/font.c (NewCenturySchoolbook-BoldItalic etc). I'm fixing the strcmp for the upcoming brown bag release.
I don't know what "brown bag" means, but the problem is still present with 0.94-pre1.
This is a font configuration issue out of the scope of Dia. Earlier versions (>=0.90) used hardcode font names - which IIRC where matched by the fontserver to the real font used. Since the swicth to Gtk2 Dia is using Pango to resolve the fonts. Nowadays it's fontconfig below Pango which does the font translations. It should be possible to configure it to match 'avangarde' to something similar. Sure this would make the diagram loading system specific - but it was that way with former Dia versions as well. Sorry there is nothing more we can do about this.