[HarfBuzz] harfbuzz-ng: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Wed Nov 18 06:49:16 PST 2009
src/hb-shape.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit d33f674cb793af40f1612df3660b138383f2de95
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Wed Nov 18 09:47:44 2009 -0500
Add Mongolian variation selectors
diff --git a/src/hb-shape.c b/src/hb-shape.c
index c5e9d47..197d4a0 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
More information about the HarfBuzz
mailing list