Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6b33c34721e82d9829c4b1dd593e8461c23624a2
      
https://github.com/WebKit/WebKit/commit/6b33c34721e82d9829c4b1dd593e8461c23624a2
  Author: Vitor Roriz <[email protected]>
  Date:   2026-06-04 (Thu, 04 Jun 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/FontTaggedSettings.h
    M Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp
    M Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp
    M Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp
    M Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp

  Log Message:
  -----------
  FontTaggedSettings: Replace repeated OpenType variation axis literals with 
named constants
https://bugs.webkit.org/show_bug.cgi?id=316290
rdar://178702902

Reviewed by Sammy Gill.

Replace magic numbers and repeated char-array literals for OpenType variation 
axis tags with
named constants in FontTaggedSettings.h, where FontTag is already defined.

* Source/WebCore/platform/graphics/FontTaggedSettings.h:
(WebCore::FontVariationAxisTag::ital):
(WebCore::FontVariationAxisTag::opsz):
(WebCore::FontVariationAxisTag::slnt):
(WebCore::FontVariationAxisTag::wdth):
(WebCore::FontVariationAxisTag::wght):
(WebCore::fontVariationAxisTagValue):
* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::variationCapabilitiesForFontDescriptor):
* Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp:
(WebCore::UnrealizedCoreTextFont::addAttributesForOpticalSizing):
(WebCore::UnrealizedCoreTextFont::modifyFromContext):
* Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp:
(WebCore::buildVariationSettings):
* Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to