[webkit-changes] [WebKit/WebKit] 99a936: [Cocoa] Defer creating CTFonts a little longer for...

Myles C. Maxfield noreply at github.com
Sat Feb 11 01:12:05 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 99a9366c1abfafef23c42f8f73d5df2508bfcc36
      https://github.com/WebKit/WebKit/commit/99a9366c1abfafef23c42f8f73d5df2508bfcc36
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-02-11 (Sat, 11 Feb 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
    M Source/WebCore/platform/graphics/cocoa/FontDescriptionCocoa.cpp

  Log Message:
  -----------
  [Cocoa] Defer creating CTFonts a little longer for "special case" fonts
https://bugs.webkit.org/show_bug.cgi?id=252035
rdar://105259235

Reviewed by Cameron McCormack.

https://bugs.webkit.org/show_bug.cgi?id=247987 is about how we need to defer the
CTFontDescriptor -> CTFont transformation until as late as possible, to avoid
ping-pinging between fonts and descriptors. This pach takes one small step toward
that goal, by preserving the CTFontDescriptor slightly longer when we create
a CTFont for our so-called "special case" fonts.

* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::fontWithFamilySpecialCase):
(WebCore::fontWithFamily):

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




More information about the webkit-changes mailing list