[TextServer] Fix some emoji sequences with skin tone modifier not rendered correctly.

(cherry picked from commit f267631bdab5ca63e1d267f62cda12617a7059d5)
This commit is contained in:
Pāvels Nadtočajevs authored and Thaddeus Crews committed 2026-06-23 08:36:43 -05:00
1 parent 8c88303aed
commit 52ddf3c3e5
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ inline bool ScriptIterator::is_emoji(UChar32 p_c, UChar32 p_next) {
} else if (p_next == VARIATION_SELECTOR_16 && (u_hasBinaryProperty(p_c, UCHAR_EMOJI) || u_hasBinaryProperty(p_c, UCHAR_EXTENDED_PICTOGRAPHIC))) {
return true;
} else {
return u_hasBinaryProperty(p_c, UCHAR_EMOJI_PRESENTATION) || u_hasBinaryProperty(p_c, UCHAR_EMOJI_MODIFIER) || u_hasBinaryProperty(p_c, UCHAR_REGIONAL_INDICATOR);
return u_hasBinaryProperty(p_c, UCHAR_EMOJI_PRESENTATION) || u_hasBinaryProperty(p_c, UCHAR_EMOJI_MODIFIER) || u_hasBinaryProperty(p_c, UCHAR_REGIONAL_INDICATOR) || (u_hasBinaryProperty(p_c, UCHAR_EMOJI) && u_hasBinaryProperty(p_next, UCHAR_EMOJI_MODIFIER));
}
}