Commit 6f767cec authored by Patrick Lam's avatar Patrick Lam
Browse files

Restore code to skip over PCF fonts that have no encoded characters. (We

    guess that a font is PCF by presence of the PIXEL_SIZE BDF property.)
parent ec760b17
2005-12-20 Patrick Lam <plam@mit.edu>
* src/fcfreetype.c (FcFreeTypeQuery):
Restore code to skip over PCF fonts that have no encoded
characters.
(We guess that a font is PCF by presence of the PIXEL_SIZE
BDF property.)
2005-12-12 Patrick Lam <plam@mit.edu> 2005-12-12 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcDirCacheOpen, FcDirCacheWrite): * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
......
<!-- Available Gujarti fonts look much better without hinting -->
<match target="font">
<test name="family"><string>Lohit Gujarati</string></test>
<edit name="hinting"><bool>false</bool></edit>
</match>
\ No newline at end of file
...@@ -1555,17 +1555,20 @@ FcFreeTypeQuery (const FcChar8 *file, ...@@ -1555,17 +1555,20 @@ FcFreeTypeQuery (const FcChar8 *file,
} }
#endif #endif
#if 0
/* /*
* Skip over PCF fonts that have no encoded characters; they're * Skip over PCF fonts that have no encoded characters; they're
* usually just Unicode fonts transcoded to some legacy encoding * usually just Unicode fonts transcoded to some legacy encoding
* ftglue.c forces us to approximate whether a font is a PCF font
* or not by whether it has any BDF properties. Try PIXEL_SIZE;
* I don't know how to get a list of BDF properties on the font. -PL
*/ */
if (FcCharSetCount (cs) == 0) if (FcCharSetCount (cs) == 0)
{ {
if (!strcmp(FT_MODULE_CLASS(&face->driver->root)->module_name, "pcf")) #if HAVE_FT_GET_BDF_PROPERTY
if(FT_Get_BDF_Property(face, "PIXEL_SIZE", &prop) == 0)
goto bail2; goto bail2;
}
#endif #endif
}
if (!FcPatternAddCharSet (pat, FC_CHARSET, cs)) if (!FcPatternAddCharSet (pat, FC_CHARSET, cs))
goto bail2; goto bail2;
......
Supports Markdown
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