Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 81a0be650077c18951b3362f01dd0e13a66228ee
https://github.com/WebKit/WebKit/commit/81a0be650077c18951b3362f01dd0e13a66228ee
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-02 (Tue, 02 Jun 2026)
Changed paths:
M LayoutTests/TestExpectations
M LayoutTests/fast/text/variations/basic-properties-expected.html
M Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp
M Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp
Log Message:
-----------
font-style: oblique angle applied to the variable font 'slnt' axis with the
wrong sign
https://bugs.webkit.org/show_bug.cgi?id=315914
rdar://178326843
Reviewed by Vitor Roriz.
In UnrealizedCoreTextFont the CSS oblique angle was applied to the registered
'slnt' axis without negation. The 'slnt' axis is positive counter-clockwise
while a CSS oblique angle is positive clockwise, so a forward oblique was
rendered as a backslant (or clamped to upright on fonts whose slnt axis only
covers the forward direction).
Negate the angle when setting the 'slnt' axis, in both the OpenType and
TrueType GX (AAT) paths.
Apply same fix to skia path in FontCustomPlatformData::fontPlatformData.
* LayoutTests/TestExpectations: Progressions
* LayoutTests/fast/text/variations/basic-properties-expected.html: Fixed
(matching now other browsers)
* Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp:
(WebCore::UnrealizedCoreTextFont::modifyFromContext):
(WebCore::UnrealizedCoreTextFont::realize const):
* Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):
Canonical link: https://commits.webkit.org/314399@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications