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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/Character.cpp

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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/CharacterData.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 return ComplexPath; 191 return ComplexPath;
192 192
193 // Man and Woman Emojies, 193 // Man and Woman Emojies,
194 // in order to support emoji joiner combinations for family and coup le pictographs. 194 // in order to support emoji joiner combinations for family and coup le pictographs.
195 // Compare http://unicode.org/reports/tr51/#Emoji_ZWJ_Sequences 195 // Compare http://unicode.org/reports/tr51/#Emoji_ZWJ_Sequences
196 if (supplementaryCharacter < 0x1F468) 196 if (supplementaryCharacter < 0x1F468)
197 continue; 197 continue;
198 if (supplementaryCharacter <= 0x1F469) 198 if (supplementaryCharacter <= 0x1F469)
199 return ComplexPath; 199 return ComplexPath;
200 200
201 if (supplementaryCharacter < 0x1F3FB)
eae 2016/03/09 19:33:45 Could we add named constants or a comment to expla
202 continue;
203 if (supplementaryCharacter >= 0x1F3FF)
204 return ComplexPath;
205
201 if (supplementaryCharacter < 0xE0100) // U+E0100 through U+E01EF Uni code variation selectors. 206 if (supplementaryCharacter < 0xE0100) // U+E0100 through U+E01EF Uni code variation selectors.
202 continue; 207 continue;
203 if (supplementaryCharacter <= 0xE01EF) 208 if (supplementaryCharacter <= 0xE01EF)
204 return ComplexPath; 209 return ComplexPath;
205 210
206 // FIXME: Check for Brahmi (U+11000 block), Kaithi (U+11080 block) a nd other complex scripts 211 // FIXME: Check for Brahmi (U+11000 block), Kaithi (U+11080 block) a nd other complex scripts
207 // in plane 1 or higher. 212 // in plane 1 or higher.
208 213
209 continue; 214 continue;
210 } 215 }
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 353 }
349 354
350 bool Character::isCommonOrInheritedScript(UChar32 character) 355 bool Character::isCommonOrInheritedScript(UChar32 character)
351 { 356 {
352 UErrorCode status = U_ZERO_ERROR; 357 UErrorCode status = U_ZERO_ERROR;
353 UScriptCode script = uscript_getScript(character, &status); 358 UScriptCode script = uscript_getScript(character, &status);
354 return U_SUCCESS(status) && (script == USCRIPT_COMMON || script == USCRIPT_I NHERITED); 359 return U_SUCCESS(status) && (script == USCRIPT_COMMON || script == USCRIPT_I NHERITED);
355 } 360 }
356 361
357 } // namespace blink 362 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/CharacterData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698