Patch to recognize PostScript weight "Demi"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--=-iMxpVS7d9M0h0Qu5ab5H
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by barrayar.local.thibault.org id i1GGWALY001421

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=E7ois Thibault
Carolingia, East
francis@xxxxxxxxxxxx
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

--=-iMxpVS7d9M0h0Qu5ab5H
Content-Disposition: attachment; filename=fontconfig-2.2.1-demi.patch
Content-Type: text/x-patch; name=fontconfig-2.2.1-demi.patch; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

diff -u -r fontconfig-2.2.1/src/fcfreetype.c fontconfig-2.2.1f/src/fcfreetype.c
--- fontconfig-2.2.1/src/fcfreetype.c	2003-04-30 11:17:58.000000000 -0400
+++ fontconfig-2.2.1f/src/fcfreetype.c	2004-02-16 11:07:44.000000000 -0500
@@ -750,6 +750,7 @@
 		{ "regular",		FC_WEIGHT_REGULAR },
 		{ "normal",		FC_WEIGHT_NORMAL },
 		{ "medium",		FC_WEIGHT_MEDIUM },
+		{ "demi",		FC_WEIGHT_DEMIBOLD },
 		{ "demibold",		FC_WEIGHT_DEMIBOLD },
 		{ "semibold",		FC_WEIGHT_SEMIBOLD },
 		{ "bold",		FC_WEIGHT_BOLD },

--=-iMxpVS7d9M0h0Qu5ab5H--



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux