diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-02-04 17:13:19 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-02-04 17:13:19 +0000 |
commit | 8adcead819b6bb6781f0b01c6b17175b2918af8f (patch) | |
tree | 204c6320b3725a06c132483dce21fcc70e1f6c73 /pango/pangoft2-render.c | |
parent | e14cca806c98818515054556df949c482519fc70 (diff) | |
download | pango-8adcead819b6bb6781f0b01c6b17175b2918af8f.tar.gz |
Move the FT_IS_SFNT(font) logic into pango_ft2_get_unknown glyph.
2006-02-04 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoft2.c, pango/pangoft2-render.c: Move the
FT_IS_SFNT(font) logic into pango_ft2_get_unknown glyph.
Diffstat (limited to 'pango/pangoft2-render.c')
-rw-r--r-- | pango/pangoft2-render.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c index 2a814861..30763d7b 100644 --- a/pango/pangoft2-render.c +++ b/pango/pangoft2-render.c @@ -241,13 +241,13 @@ pango_ft2_renderer_draw_glyph (PangoRenderer *renderer, if (glyph & PANGO_GLYPH_UNKNOWN_FLAG) { - FT_Face face = pango_ft2_font_get_face (font); - if (face && FT_IS_SFNT (face)) - glyph = pango_ft2_get_unknown_glyph (font); - else + glyph = pango_ft2_get_unknown_glyph (font); + if (glyph == PANGO_GLYPH_EMPTY) { + /* No unknown glyph found for the font, draw a box */ + /* Since we only draw an empty box for FT2 renderer, - * unify the rendered bitmaps in the cache. + * we unify the rendered bitmaps in the cache. */ glyph = PANGO_GLYPH_UNKNOWN_FLAG; } |