mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
d4ded20b52
commit
c5cd6a1621
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user