[Fontconfig] Patch to recognize PostScript weight "Demi"

John Stracke francis+dated+1092501130.f8a147 at thibault.org
Tue Feb 17 03:32:09 EST 2004

I noticed that fontconfig 2.2.1 was reporting the wrong weight for one
of the fonts I was using ("URW Gothic L Demi Oblique"); when I dug into
it, I found that the problem was that the .pfb was declaring its weight
as "Demi", and fontconfig expected "Demibold".  So I modified
fcfreetype.c to recognize "Demi" as a synonym for "Demibold".  It's a
one-liner; the patch is attached.

I don't actually know whether "Demi" is a legitimate PostScript weight,
but the URW fonts seem to be common enough that it's probably worth

Legalese: I hereby renounce copyright on this patch, putting it into the
public domain.

John Stracke
François Thibault
Carolingia, East
francis at thibault.org
HTML mail OK.
PGP key
"Hastur was paranoid,
which was simply a
reaction to living in
Hell." --_Good Omens_
My medieval art for sale
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontconfig-2.2.1-demi.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040216/f569403c/fontconfig-2.2.1-demi.bin

More information about the Fontconfig mailing list