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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c
index 965e8f63..5aa1872e 100644
--- a/pango/pangoft2-render.c
+++ b/pango/pangoft2-render.c
@@ -150,6 +150,11 @@ pango_ft2_renderer_draw_glyph (PangoRenderer *renderer,
int iyoff = floor (y + 0.5);
int ix, iy;
+ if (glyph & PANGO_GLYPH_UNKNOWN_FLAG)
+ glyph = PANGO_GLYPH_NULL;
+ if (glyph == PANGO_GLYPH_NULL)
+ return;
+
rendered_glyph = _pango_ft2_font_get_cache_glyph_data (font, glyph);
add_glyph_to_cache = FALSE;
if (rendered_glyph == NULL)