Commit 5657098e authored by Patrick Lam's avatar Patrick Lam
Browse files

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
parent d00c3cb5
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):
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment