[Fontconfig] Patch to recognize PostScript weight "Demi"

John Stracke
Mon, 21 Nov 2005 08:50:56 -0000

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
supporting.

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

John Stracke
Fran?ois Thibault
Carolingia, East
francis@thibault.org
HTML mail OK.
PGP key
"Hastur was paranoid,
which was simply a
sensible...well-adjusted
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