Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 06d88499f9e6ae4b4d107b185b7a2e2273840bc6
https://github.com/WebKit/WebKit/commit/06d88499f9e6ae4b4d107b185b7a2e2273840bc6
Author: Vitor Roriz <[email protected]>
Date: 2026-06-16 (Tue, 16 Jun 2026)
Changed paths:
M LayoutTests/platform/glib/TestExpectations
M LayoutTests/platform/ios/TestExpectations
M LayoutTests/platform/mac/TestExpectations
M Source/WebCore/css/CSSFontFaceSource.cpp
M Source/WebCore/loader/FontLoadRequest.h
M Source/WebCore/loader/cache/CachedFont.cpp
M Source/WebCore/loader/cache/CachedFont.h
M Source/WebCore/loader/cache/CachedFontLoadRequest.h
M Source/WebCore/loader/cache/CachedSVGFont.cpp
M Source/WebCore/loader/cache/CachedSVGFont.h
M Source/WebCore/platform/graphics/Font.cpp
M Source/WebCore/platform/graphics/FontCustomPlatformData.h
M
Source/WebCore/platform/graphics/coretext/FontCustomPlatformDataCoreText.cpp
M
Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
M Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp
M
Source/WebCore/platform/graphics/win/cairo/FontCustomPlatformDataWinCairo.cpp
M Source/WebCore/workers/WorkerFontLoadRequest.cpp
M Source/WebCore/workers/WorkerFontLoadRequest.h
Log Message:
-----------
font-synthesis: Avoid synthetic oblique for variable fonts in @font-face
https://bugs.webkit.org/show_bug.cgi?id=316289
rdar://178698772
Reviewed by Brent Fulgham.
Same as https://commits.webkit.org/314814@main but for the oblique/italic axis:
a variable font with a slnt or ital axis already produces the closest available
slope, so synthetic obliquing on top is wrong. Only suppress synthesis when the
font-style descriptor is auto, letting the variable axis own the slope. Also fix
CachedSVGFont to compute synthetic bold/italic instead of hardcoding them false.
Spec: https://drafts.csswg.org/css-fonts-4/#font-prop-desc
Resolution: https://github.com/w3c/csswg-drafts/issues/7999
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/mac/TestExpectations:
* Source/WebCore/css/CSSFontFaceSource.cpp:
(WebCore::CSSFontFaceSource::font):
* Source/WebCore/loader/cache/CachedFont.cpp:
(WebCore::CachedFont::createFont):
(WebCore::CachedFont::platformDataFromCustomData):
* Source/WebCore/loader/cache/CachedFont.h:
* Source/WebCore/loader/cache/CachedSVGFont.cpp:
(WebCore::CachedSVGFont::platformDataFromCustomData):
* Source/WebCore/loader/cache/CachedSVGFont.h:
* Source/WebCore/platform/graphics/Font.cpp:
(WebCore::Font::create):
* Source/WebCore/platform/graphics/FontCustomPlatformData.h:
(WebCore::computeSyntheticItalic):
* Source/WebCore/platform/graphics/coretext/FontCustomPlatformDataCoreText.cpp:
(WebCore::fontHasSlopeVariationAxis):
(WebCore::FontCustomPlatformData::fontPlatformData):
* Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):
* Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):
* Source/WebCore/platform/graphics/win/cairo/FontCustomPlatformDataWinCairo.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):
* Source/WebCore/workers/WorkerFontLoadRequest.cpp:
(WebCore::WorkerFontLoadRequest::createFont):
* Source/WebCore/workers/WorkerFontLoadRequest.h:
Canonical link: https://commits.webkit.org/315345@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications