summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pango/pangocairo-render.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c
index d3b3d34d..99154e77 100644
--- a/pango/pangocairo-render.c
+++ b/pango/pangocairo-render.c
@@ -507,7 +507,12 @@ pango_cairo_renderer_show_text_glyphs (PangoRenderer *renderer,
base_y + (double)(gi->geometry.y_offset) / PANGO_SCALE;
if (gi->glyph & PANGO_GLYPH_UNKNOWN_FLAG)
- _pango_cairo_renderer_draw_unknown_glyph (crenderer, font, gi, cx, cy);
+ {
+ if (gi->glyph == (0x20 | PANGO_GLYPH_UNKNOWN_FLAG))
+ ; /* no hex boxes for space, please */
+ else
+ _pango_cairo_renderer_draw_unknown_glyph (crenderer, font, gi, cx, cy);
+ }
else
{
cairo_glyphs[count].index = gi->glyph;