summaryrefslogtreecommitdiff
path: root/pango/shape.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-28 15:54:46 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-11-28 15:54:46 +0000
commit5c292b15d4049c8692b85663431d5a2fd37c8604 (patch)
tree3f1808885d3147a73f034e5b04a9be1e348f8b0e /pango/shape.c
parent3fdbd3fe01842e683a26a1e1c9c9eb04099f27f1 (diff)
parent6f775850ae51d7b0db3a5ef9d6c824979a4b38c1 (diff)
downloadpango-5c292b15d4049c8692b85663431d5a2fd37c8604.tar.gz
Merge branch 'matthiasc/for-main' into 'main'
Never show variation selectors See merge request GNOME/pango!526
Diffstat (limited to 'pango/shape.c')
-rw-r--r--pango/shape.c7
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;
}