From d33f674cb793af40f1612df3660b138383f2de95 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 18 Nov 2009 09:47:44 -0500 Subject: [PATCH] Add Mongolian variation selectors --- src/hb-shape.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hb-shape.c b/src/hb-shape.c index c5e9d470..197d4a03 100644 --- a/src/hb-shape.c +++ b/src/hb-shape.c @@ -33,8 +33,9 @@ static inline hb_bool_t is_variation_selector (hb_codepoint_t unicode) { - return (unicode >= 0xFE00 && unicode <= 0xFE0F) || - (unicode >= 0xE0100 && unicode <= 0xE01EF); + return HB_UNLIKELY ((unicode >= 0x180B && unicode <= 0x180D) || /* MONGOLIAN FREE VARIATION SELECTOR ONE..THREE */ + (unicode >= 0xFE00 && unicode <= 0xFE0F) || /* VARIATION SELECTOR-1..16 */ + (unicode >= 0xE0100 && unicode <= 0xE01EF)); /* VARIATION SELECTOR-17..256 */ } static void -- GitLab