Changeset 247699 in webkit


Ignore:
Timestamp:
Jul 22, 2019 1:24:05 PM (5 years ago)
Author:
pvollan@apple.com
Message:

Prewarmed font does not find any matches
https://bugs.webkit.org/show_bug.cgi?id=200007

Reviewed by Brent Fulgham.

Prewarming the font name 'SF Pro Text' does not find any matches. The font name ".SF NS Text/Display"
should be used instead. Also add 'Lucida Grande' to the list of prewarmed font, since it is used as
fallback font in many cases.

No new tests, covered by existing tests.

  • platform/graphics/cocoa/FontCacheCoreText.cpp:

(WebCore::fontFamiliesForPrewarming):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r247698 r247699  
     12019-07-22  Per Arne Vollan  <pvollan@apple.com>
     2
     3        Prewarmed font does not find any matches
     4        https://bugs.webkit.org/show_bug.cgi?id=200007
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Prewarming the font name 'SF Pro Text' does not find any matches. The font name ".SF NS Text/Display"
     9        should be used instead. Also add 'Lucida Grande' to the list of prewarmed font, since it is used as
     10        fallback font in many cases.
     11
     12        No new tests, covered by existing tests.
     13
     14        * platform/graphics/cocoa/FontCacheCoreText.cpp:
     15        (WebCore::fontFamiliesForPrewarming):
     16
    1172019-07-22  Youenn Fablet  <youenn@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp

    r247626 r247699  
    16531653{
    16541654    static NeverDestroyed<Vector<String>> families = std::initializer_list<String> {
     1655        ".SF NS Text"_s,
     1656        ".SF NS Display"_s,
    16551657        "Arial"_s,
    16561658        "Helvetica"_s,
    16571659        "Helvetica Neue"_s,
    1658         "SF Pro Text"_s,
     1660        "Lucida Grande"_s,
    16591661        "Times"_s,
    16601662        "Times New Roman"_s,
Note: See TracChangeset for help on using the changeset viewer.