[webkit-changes] [WebKit/WebKit] b81575: [Cocoa] CTFontCreateForCharactersWithLanguageAndOp...

Myles C. Maxfield noreply at github.com
Tue Jan 10 02:07:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b81575ac43fd15e5961ef99371dcc5d91609323f
      https://github.com/WebKit/WebKit/commit/b81575ac43fd15e5961ef99371dcc5d91609323f
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-01-10 (Tue, 10 Jan 2023)

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
    M Source/WebCore/platform/graphics/cocoa/FontDatabase.cpp
    M Source/WebCore/platform/graphics/cocoa/FontDatabase.h

  Log Message:
  -----------
  [Cocoa] CTFontCreateForCharactersWithLanguageAndOption() is available on all Cocoa platforms
https://bugs.webkit.org/show_bug.cgi?id=250363
rdar://104063789

Reviewed by Tim Horton.

Simply unify the codepaths.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::preparePlatformFont):
(WebCore::createFontForCharacters):
(WebCore::FontCache::prewarm):
* Source/WebCore/platform/graphics/cocoa/FontDatabase.cpp:
(WebCore::FontDatabase::InstalledFont::InstalledFont):
(WebCore::FontDatabase::collectionForFamily):
(WebCore::FontDatabase::fontForPostScriptName):
* Source/WebCore/platform/graphics/cocoa/FontDatabase.h:

Canonical link: https://commits.webkit.org/258710@main




More information about the webkit-changes mailing list