Changeset 73706 in webkit


Ignore:
Timestamp:
Dec 10, 2010 2:36:49 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-12-10 Koan-Sin Tan <koansin.tan@gmail.com>

Reviewed by Dan Bernstein.

Bopomofo should be part of CJK Ideographs in WebCore/platform/graphics/Font.cpp
https://bugs.webkit.org/show_bug.cgi?id=50668

No new tests. Note that, as said in the bug report discussion,
I did have a test case for the bug. However, to show the test
case you need some "broken" Microsoft copyrighted fonts, such
as DFKai-SB.

  • platform/graphics/Font.cpp: (WebCore::Font::isCJKIdeograph):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r73705 r73706  
     12010-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
    1162010-12-10  Carlos Garcia Campos  <cgarcia@igalia.com>
    217
  • trunk/WebCore/platform/graphics/Font.cpp

    r71970 r73706  
    339339bool Font::isCJKIdeograph(UChar32 c)
    340340{
     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
    341348    // The basic CJK Unified Ideographs block.
    342349    if (c >= 0x4E00 && c <= 0x9FFF)
     
    362369    if (c >= 0x3000 && c <= 0x303F)
    363370        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 
    365380    // CJK Strokes.
    366381    if (c >= 0x31C0 && c <= 0x31EF)
Note: See TracChangeset for help on using the changeset viewer.