On Sun, 2004-08-22 at 21:57, Adrian E. Feiguin wrote:
> Hi Owen,
> Sorry to keep bothering with this, but some odd things are confusing
> me. I'm using the default RH9 installation packages, with the urw fonts.
> I started setting the aliases for the 35 adobe fonts, using teh urw
> equivalents. They are all installed using fc-cache, and they all show up
> with the libgnomeprint test programs. For instance, if I use fonts
> --dump, and I look at the list of fonts, I get, among others:
> URW Gothic L Book
> URW Gothic L Book Oblique
> URW Gothic L Demi
> URW Gothic L Demi Oblique
> (It's not relevant, but I want to set these as the equivalents for the
> PS fonts:
>
> AvantGarde-Book
> AvantGarde-BookOblique
> AvantGarde-Demi
> AvantGarde-DemiOblique
> )
>
>
> To test this, I do
>
> font_desc = pango_font_description_from_string("URW Gothic L Book 18");
> gtk_widget_set_font(widget, font_desc);
libgnomeprint font naming is different from Pango naming, which
is based on fontconfig:
$ fc-list - family style weight slant | grep "URW Gothic"
URW Gothic L:style=Demi:slant=0:weight=100
URW Gothic L:style=Book:slant=0:weight=100
URW Gothic L:style=Demi Oblique:slant=100:weight=100
URW Gothic L:style=Book Oblique:slant=100:weight=100
Unfortunately it looks like the fontconfig parsing code doesn't
figure out that Demi is a form of bold. Since family/slant/weight
are the same you won't be able to select these fonts indepedently
in Pango.
Regards,
Owen
Attachment:
signature.asc
Description: This is a digitally signed message part