[pango/visible-things] cairo: Render all missing spaces



commit 983577db7e2cb5c362ab83f195980474979c0024
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 8 14:06:44 2019 -0400

    cairo: Render all missing spaces
    
    When we render an unknown glyph whose codepoint
    is in the Zs category, render a visible space.

 pango/pangocairo-render.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c
index 3d81516a..e551064d 100644
--- a/pango/pangocairo-render.c
+++ b/pango/pangocairo-render.c
@@ -394,7 +394,8 @@ _pango_cairo_renderer_draw_unknown_glyph (PangoCairoRenderer *crenderer,
       rows = hbi->rows;
       cols = 1;
     }
-  else if (ch == 0x2423)
+  else if (ch == 0x2423 ||
+           g_unichar_type (ch) == G_UNICODE_SPACE_SEPARATOR)
     {
       /* We never want to show a hex box or other drawing for
        * space. If we want space to be visible, we replace 0x20


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]