[pango/serialization-improvements: 1/19] Fix visible space handling




commit 1b73b50a5f95fefde3dad193835e68f72f844d04
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 24 19:28:32 2021 -0500

    Fix visible space handling
    
    Make space actually show up as visible space
    when we want that.

 pango/shape.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/pango/shape.c b/pango/shape.c
index 02f0f059..afb1e1a3 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -102,10 +102,12 @@ pango_hb_font_get_nominal_glyph (hb_font_t      *font,
            * don't draw a hex box for 0x20
            */
           if (unicode == 0x20)
-            *glyph = PANGO_GET_UNKNOWN_GLYPH (0x2423);
+            unicode = 0x2423;
           else
-            *glyph = PANGO_GET_UNKNOWN_GLYPH (unicode);
-          return TRUE;
+            {
+              *glyph = PANGO_GET_UNKNOWN_GLYPH (unicode);
+              return TRUE;
+            }
         }
 
       if ((context->show_flags & PANGO_SHOW_IGNORABLES) != 0 &&


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