diff options
Diffstat (limited to 'pango/pangocairo-font.c')
-rw-r--r-- | pango/pangocairo-font.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c index 3bf83857..a49d14d4 100644 --- a/pango/pangocairo-font.c +++ b/pango/pangocairo-font.c @@ -720,7 +720,9 @@ _pango_cairo_font_private_get_glyph_extents_missing (PangoCairoFontPrivate *cf_p gunichar ch; gint rows, cols; - if (glyph == (0x20 | PANGO_GLYPH_UNKNOWN_FLAG)) + ch = glyph & ~PANGO_GLYPH_UNKNOWN_FLAG; + + if (ch == 0x20 || ch == 0x2423) { get_space_extents (cf_priv, ink_rect, logical_rect); return; @@ -733,8 +735,6 @@ _pango_cairo_font_private_get_glyph_extents_missing (PangoCairoFontPrivate *cf_p return; } - ch = glyph & ~PANGO_GLYPH_UNKNOWN_FLAG; - if (G_UNLIKELY (glyph == PANGO_GLYPH_INVALID_INPUT || ch > 0x10FFFF)) { rows = hbi->rows; |