summaryrefslogtreecommitdiff
path: root/pango/pangoft2-render.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangoft2-render.c')
-rw-r--r--pango/pangoft2-render.c10
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;
}