summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-24 19:28:32 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-24 19:57:58 -0500
commit1b73b50a5f95fefde3dad193835e68f72f844d04 (patch)
tree3680a47879d8ed3748defbdc286f3c1d57195460
parent55efd092b0319f2a2697c510eafc2b0b23597d26 (diff)
downloadpango-1b73b50a5f95fefde3dad193835e68f72f844d04.tar.gz
Fix visible space handling
Make space actually show up as visible space when we want that.
-rw-r--r--pango/shape.c8
1 files 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 &&