summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2006-02-13 21:51:11 +0000
committerPatrick Lam <plam@MIT.EDU>2006-02-13 21:51:11 +0000
commit5657098e2940652065fcfd00e4cf2771d7df21ef (patch)
tree69594fada57b44b4c7dbd00672c98a17d8ba7649
parentd00c3cb5e046dfb04b446d8b0bb10880d190cc13 (diff)
Skip bitmap fonts which can't even get it together enough to declare a
family name; this appears to reproduce previous fontconfig behaviour. reviewed by: plam
-rw-r--r--ChangeLog8
-rw-r--r--src/fcfreetype.c5
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7e338d0b..5ee8fabb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-02-13 Mike Fabian <mfabian@suse.de>
+ reviewed by: plam
+ * src/fcfreetype.c (FcFreeTypeQuery):
+
+ Skip bitmap fonts which can't even get it together enough to
+ declare a family name; this appears to reproduce previous
+ fontconfig behaviour.
+
2006-02-10 Takashi Iwai <tiwai@suse.de>
reviewed by: plam
* src/fccache.c (FcDirCacheOpen):
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 27dff11c..9dc45fc3 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -1609,6 +1609,11 @@ FcFreeTypeQuery (const FcChar8 *file,
int value;
BDF_PropertyRec prop;
+ /* skip bitmap fonts which do not even have a family name */
+ rc = FT_Get_BDF_Property(face, "FAMILY_NAME", &prop);
+ if (rc != 0 || prop.type != BDF_PROPERTY_TYPE_ATOM)
+ goto bail2;
+
rc = FT_Get_BDF_Property(face, "POINT_SIZE", &prop);
if(rc == 0 && prop.type == BDF_PROPERTY_TYPE_INTEGER)
value = prop.u.integer;