Suport CFF fonts as well. (#131202, Manjunath Sripadarao)

Mon Jan 26 14:20:34 2004  Owen Taylor  <otaylor@redhat.com>

        * pango/opentype/pango-ot-info.c (is_truetype): Suport
        CFF fonts as well. (#131202, Manjunath Sripadarao)
This commit is contained in:
Owen Taylor 2004-01-26 19:23:35 +00:00 committed by Owen Taylor
parent 945e479a3a
commit 926b8f3229
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ pango_ot_info_get (FT_Face face)
static gboolean
is_truetype (FT_Face face)
{
return strcmp (FT_MODULE_CLASS (face->driver)->module_name, "truetype") == 0;
return strcmp (FT_MODULE_CLASS (face->driver)->module_name, "truetype") == 0 ||
strcmp (FT_MODULE_CLASS (face->driver)->module_name, "cff") == 0;
}
typedef struct _GlyphInfo GlyphInfo;