From 1b73b50a5f95fefde3dad193835e68f72f844d04 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 24 Nov 2021 19:28:32 -0500 Subject: 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 && -- cgit v1.2.1