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

Changeset 254099 in webkit


Ignore:
Timestamp:
Jan 6, 2020, 4:49:32 PM (7 years ago)
Author:
pvollan@apple.com
Message:

[iOS] Only prewarm fonts with valid font names
​https://bugs.webkit.org/show_bug.cgi?id=205822

Reviewed by Brent Fulgham.

The font names ".SF NS Text" and ".SF NS Display" are not valid on iOS, and should not be prewarmed.

No new tests, no behavior change.

  • platform/graphics/cocoa/FontCacheCoreText.cpp:

(WebCore::FontCache::prewarmGlobally):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r254093 r254099  
     12020-01-06  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [iOS] Only prewarm fonts with valid font names
     4        https://bugs.webkit.org/show_bug.cgi?id=205822
     5
     6        Reviewed by Brent Fulgham.
     7
     8        The font names ".SF NS Text" and ".SF NS Display" are not valid on iOS, and should not be prewarmed.
     9
     10        No new tests, no behavior change.
     11
     12        * platform/graphics/cocoa/FontCacheCoreText.cpp:
     13        (WebCore::FontCache::prewarmGlobally):
     14
    1152020-01-06  Peng Liu  <peng.liu6@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp

    r254087 r254099  
    16951695
    16961696    Vector<String> families = std::initializer_list<String> {
     1697#if PLATFORM(MAC) || PLATFORM(MACCATALYST)
    16971698        ".SF NS Text"_s,
    16981699        ".SF NS Display"_s,
     1700#endif
    16991701        "Arial"_s,
    17001702        "Helvetica"_s,
Note: See TracChangeset for help on using the changeset viewer.