⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259533 in webkit


Ignore:
Timestamp:
Apr 4, 2020, 11:38:24 AM (6 years ago)
Author:
mmaxfield@apple.com
Message:

Ahom text is busted
https://bugs.webkit.org/show_bug.cgi?id=209898
<rdar://problem/60571257>

Reviewed by Tim Horton.

https://en.wikipedia.org/wiki/Ahom_language

The Ahom language, U+11700 - U+1173F, requires the complex text codepath.
This patch also makes some languages adjacent in codepoint-space (Dogra,
Dives Akuru, Nandinagari, Zanabazar Square, Soyombo, Warang Citi, and
Pau Cin Hau) use the complex path too.

At some point, we really need to make the fast text codepath opt-in instead
of opt-out. This patch is a simple band-aid fix until we can do that.

No new tests because I can't find an appropriately licenced font.
There is Noto Serif Ahom, but that's licenced under SIL OFL, and I'm
not sure if that's an acceptable license to be committed to WebKit.
https://github.com/googlefonts/noto-fonts/tree/master/hinted/NotoSerifAhom

  • platform/graphics/FontCascade.cpp:

(WebCore::FontCascade::characterRangeCodePath):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r259532 r259533  
     12020-04-04  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Ahom text is busted
     4        https://bugs.webkit.org/show_bug.cgi?id=209898
     5        <rdar://problem/60571257>
     6
     7        Reviewed by Tim Horton.
     8
     9        https://en.wikipedia.org/wiki/Ahom_language
     10
     11        The Ahom language, U+11700 - U+1173F, requires the complex text codepath.
     12        This patch also makes some languages adjacent in codepoint-space (Dogra,
     13        Dives Akuru, Nandinagari, Zanabazar Square, Soyombo, Warang Citi, and
     14        Pau Cin Hau) use the complex path too.
     15
     16        At some point, we really need to make the fast text codepath opt-in instead
     17        of opt-out. This patch is a simple band-aid fix until we can do that.
     18
     19        No new tests because I can't find an appropriately licenced font.
     20        There is Noto Serif Ahom, but that's licenced under SIL OFL, and I'm
     21        not sure if that's an acceptable license to be committed to WebKit.
     22        https://github.com/googlefonts/noto-fonts/tree/master/hinted/NotoSerifAhom
     23
     24        * platform/graphics/FontCascade.cpp:
     25        (WebCore::FontCascade::characterRangeCodePath):
     26
    1272020-04-04  Antti Koivisto  <antti@apple.com>
    228
  • trunk/Source/WebCore/platform/graphics/FontCascade.cpp

    r256037 r259533  
    823823            if (supplementaryCharacter < 0x116D0) // Takri
    824824                return Complex;
    825             if (supplementaryCharacter < 0x11C00)
    826                 continue;
     825            if (supplementaryCharacter < 0x11740)
     826                continue;
     827            if (supplementaryCharacter < 0x11C00) // Ahom, Dogra, Dives Akuru, Nandinagari, Zanabazar Square, Soyombo, Warang Citi, Pau Cin Hau
     828                return Complex;
    827829            if (supplementaryCharacter < 0x11C70) // Bhaiksuki
    828830                return Complex;
Note: See TracChangeset for help on using the changeset viewer.