Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1078)

Unified Diff: third_party/WebKit/Source/platform/fonts/CharacterData.h

Issue 1780723002: Enable Emoji Fitzpatrick modifier sequences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/fonts/CharacterData.h
diff --git a/third_party/WebKit/Source/platform/fonts/CharacterData.h b/third_party/WebKit/Source/platform/fonts/CharacterData.h
index a9c8f21d959abca0d2175a66afbf97d96d785206..dbc40034c3b26739923f32b06d8cf7332f8475f5 100644
--- a/third_party/WebKit/Source/platform/fonts/CharacterData.h
+++ b/third_party/WebKit/Source/platform/fonts/CharacterData.h
@@ -23,9 +23,9 @@ static const UChar32 isCJKIdeographOrSymbolArray[] = {
0x212B, 0x213B, 0x2150, 0x2151, 0x2152, 0x217F, 0x2189, 0x2307, 0x2312, 0x23CE,
0x2423, 0x25A0, 0x25A1, 0x25A2, 0x25AA, 0x25AB, 0x25B1, 0x25B2, 0x25B3, 0x25B6,
0x25B7, 0x25BC, 0x25BD, 0x25C0, 0x25C1, 0x25C6, 0x25C7, 0x25C9, 0x25CB, 0x25CC,
- 0x25EF, 0x2605, 0x2606, 0x260E, 0x2616, 0x2617, 0x2640, 0x2642, 0x26A0, 0x26BD,
- 0x26BE, 0x2713, 0x271A, 0x273F, 0x2740, 0x2756, 0x2B1A, 0xFE10, 0xFE11, 0xFE12,
- 0xFE19, 0xFF1D,
+ 0x25EF, 0x2605, 0x2606, 0x260E, 0x2616, 0x2617, 0x261D, 0x2640, 0x2642, 0x26A0,
+ 0x26BD, 0x26BE, 0x26F9, 0x2713, 0x271A, 0x273F, 0x2740, 0x2756, 0x2B1A, 0xFE10,
+ 0xFE11, 0xFE12, 0xFE19, 0xFF1D,
// Emoji.
0x1F100
};
@@ -68,6 +68,9 @@ static const UChar32 isCJKIdeographOrSymbolRanges[] = {
0x2763, 0x2764,
0x2672, 0x267D,
0x2776, 0x277F,
+ // Hand signs needed in order
+ // not to break Emoji modifier sequences.
+ 0x270A, 0x270D,
// Ideographic Description Characters, with CJK Symbols and Punctuation,
// excluding 0x3030.
// Then Hiragana 0x3040 .. 0x309F, Katakana 0x30A0 .. 0x30FF, Bopomofo
@@ -92,7 +95,11 @@ static const UChar32 isCJKIdeographOrSymbolRanges[] = {
0x1F130, 0x1F149,
0x1F150, 0x1F169,
0x1F170, 0x1F189,
- 0x1F200, 0x1F6FF
+ 0x1F200, 0x1F6FF,
+ // Modifiers
+ 0x1F3FB, 0x1F3FF,
+ // ZIPPER-MOUTH FACE...SIGN OF THE HORNS
+ 0x1F910, 0x1F918
};
// Individual codepoints needed for Unicode vertical text layout according to

Powered by Google App Engine
This is Rietveld 408576698