Changeset 73706 in webkit
- Timestamp:
- Dec 10, 2010 2:36:49 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r73705 r73706 1 2010-12-10 Koan-Sin Tan <koansin.tan@gmail.com> 2 3 Reviewed by Dan Bernstein. 4 5 Bopomofo should be part of CJK Ideographs in WebCore/platform/graphics/Font.cpp 6 https://bugs.webkit.org/show_bug.cgi?id=50668 7 8 No new tests. Note that, as said in the bug report discussion, 9 I did have a test case for the bug. However, to show the test 10 case you need some "broken" Microsoft copyrighted fonts, such 11 as DFKai-SB. 12 13 * platform/graphics/Font.cpp: 14 (WebCore::Font::isCJKIdeograph): 15 1 16 2010-12-10 Carlos Garcia Campos <cgarcia@igalia.com> 2 17 -
trunk/WebCore/platform/graphics/Font.cpp
r71970 r73706 339 339 bool Font::isCJKIdeograph(UChar32 c) 340 340 { 341 // 0x2C7 Caron, Mandarin Chinese 3rd Tone 342 // 0x2CA Modifier Letter Acute Accent, Mandarin Chinese 2nd Tone 343 // 0x2CB Modifier Letter Grave Access, Mandarin Chinese 4th Tone 344 // 0x2D9 Dot Above, Mandarin Chinese 5th Tone 345 if ((c == 0x2C7) || (c == 0x2CA) || (c == 0x2CB) || (c == 0x2D9)) 346 return true; 347 341 348 // The basic CJK Unified Ideographs block. 342 349 if (c >= 0x4E00 && c <= 0x9FFF) … … 362 369 if (c >= 0x3000 && c <= 0x303F) 363 370 return true; 364 371 372 // Bopomofo 373 if (c >= 0x3100 && c <= 0x312F) 374 return true; 375 376 // Bopomofo Extended 377 if (c >= 0x31A0 && c <= 0x31BF) 378 return true; 379 365 380 // CJK Strokes. 366 381 if (c >= 0x31C0 && c <= 0x31EF)
Note: See TracChangeset
for help on using the changeset viewer.