[config] Add HB_NO_EMOJI
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
This commit is contained in:
parent
9d5b5348c7
commit
5130c90ac0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue