[config] Add HB_NO_EMOJI

Part of https://github.com/harfbuzz/harfbuzz/issues/1652
This commit is contained in:
Behdad Esfahbod 2019-06-26 14:29:39 -07:00
parent 9d5b5348c7
commit 5130c90ac0
3 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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:
*

View File

@ -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