diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-28 09:59:39 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-28 10:34:22 -0500 |
commit | 2439902d2f81c0e44e753a7381b27a5ad5d0d2b4 (patch) | |
tree | be4d6f559b9c93b95f09114401758d06341b35f4 /pango/shape.c | |
parent | 3fdbd3fe01842e683a26a1e1c9c9eb04099f27f1 (diff) | |
download | pango-2439902d2f81c0e44e753a7381b27a5ad5d0d2b4.tar.gz |
Never show variation selectors
Even when we show ignorables, we still want to
ignore variation selectors and other ignorables
that we don't have nicks for.
Test included.
Diffstat (limited to 'pango/shape.c')
-rw-r--r-- | pango/shape.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pango/shape.c b/pango/shape.c index caefeae4..45c979f2 100644 --- a/pango/shape.c +++ b/pango/shape.c @@ -111,9 +111,12 @@ pango_hb_font_get_nominal_glyph (hb_font_t *font, } if ((context->show_flags & PANGO_SHOW_IGNORABLES) != 0 && - pango_get_ignorable (unicode)) + pango_is_default_ignorable (unicode)) { - *glyph = PANGO_GET_UNKNOWN_GLYPH (unicode); + if (pango_get_ignorable (unicode)) + *glyph = PANGO_GET_UNKNOWN_GLYPH (unicode); + else + *glyph = PANGO_GLYPH_EMPTY; return TRUE; } |