aboutsummaryrefslogtreecommitdiffstats
path: root/text
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-28 15:03:09 +0100
committereunhhu <[email protected]>2026-09-28 15:03:09 +0100
commitb5659615bd770fd641f389e5fde8ae97be505fca (patch)
tree35fa653dba84c2b465b4bcc825530889f55fe42d /text
parent9bb85cffb10e0d4bc007406d1487a6dede3db975 (diff)
downloadvega-b5659615bd770fd641f389e5fde8ae97be505fca.tar.gz
vega-b5659615bd770fd641f389e5fde8ae97be505fca.zip
Leave U+180F visible, as HarfBuzz 10.2 does
HarfBuzz's is_default_ignorable takes U+180B..180E from the Mongolian block, not the fourth free variation selector (U+180F, default ignorable since Unicode 14), so it keeps its own glyph rather than the invisible one. Unifont's Mongolian showed it.
Diffstat (limited to 'text')
-rw-r--r--text/shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text/shape.c b/text/shape.c
index 214d73b..4dd92da 100644
--- a/text/shape.c
+++ b/text/shape.c
@@ -573,7 +573,7 @@ static bool default_ignorable(uint32_t ch) {
case 0x03: return ch == 0x034F;
case 0x06: return ch == 0x061C;
case 0x17: return ch >= 0x17B4 && ch <= 0x17B5;
- case 0x18: return ch >= 0x180B && ch <= 0x180F;
+ case 0x18: return ch >= 0x180B && ch <= 0x180E; /* HarfBuzz 10.2 leaves out U+180F */
case 0x20: return (ch >= 0x200B && ch <= 0x200F) || (ch >= 0x202A && ch <= 0x202E) || (ch >= 0x2060 && ch <= 0x206F);
case 0xFE: return (ch >= 0xFE00 && ch <= 0xFE0F) || ch == 0xFEFF;
case 0xFF: return ch >= 0xFFF0 && ch <= 0xFFF8;