Bug 1477010 - Treat plane-14 tag characters as cluster extenders when building textruns, so that emoji flag sequences behave as single units. r=m_kato

This commit is contained in:
Jonathan Kew 2018-07-25 09:38:07 +01:00
parent d4ded20b52
commit c5cd6a1621

View File

@ -156,7 +156,8 @@ IsClusterExtender(uint32_t aCh, uint8_t aCategory)
return ((aCategory >= HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK &&
aCategory <= HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) ||
(aCh >= 0x200c && aCh <= 0x200d) || // ZWJ, ZWNJ
(aCh >= 0xff9e && aCh <= 0xff9f)); // katakana sound marks
(aCh >= 0xff9e && aCh <= 0xff9f) || // katakana sound marks
(aCh >= 0xe0020 && aCh <= 0xe007f)); // emoji (flag) tag characters
}
enum HSType {