提交 5130c90a 编写于 作者: B Behdad Esfahbod

[config] Add HB_NO_EMOJI

Part of https://github.com/harfbuzz/harfbuzz/issues/1652
上级 9d5b5348
......@@ -58,6 +58,7 @@
#define HB_NO_BITMAP
#define HB_NO_CFF
#define HB_NO_COLOR
#define HB_NO_EMOJI
#define HB_NO_FACE_COLLECT_UNICODES
#define HB_NO_GETENV
#define HB_NO_HINTING
......
......@@ -479,6 +479,7 @@ hb_set_unicode_props (hb_buffer_t *buffer)
{
_hb_glyph_info_set_continuation (&info[i]);
}
#ifndef HB_NO_EMOJI
else if (unlikely (_hb_glyph_info_is_zwj (&info[i])))
{
_hb_glyph_info_set_continuation (&info[i]);
......@@ -490,6 +491,7 @@ hb_set_unicode_props (hb_buffer_t *buffer)
_hb_glyph_info_set_continuation (&info[i]);
}
}
#endif
/* Or part of the Other_Grapheme_Extend that is not marks.
* As of Unicode 11 that is just:
*
......
......@@ -570,6 +570,7 @@ _hb_modified_combining_class[256] =
/*
* Emoji
*/
#ifndef HB_NO_EMOJI
#include "hb-unicode-emoji-table.hh"
......@@ -581,3 +582,4 @@ _hb_unicode_is_emoji_Extended_Pictographic (hb_codepoint_t cp)
sizeof (hb_unicode_range_t),
hb_unicode_range_t::cmp);
}
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册