Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 73d4d6d5e1fd18a8fecdf7595a0c91ce126d74cf
https://github.com/WebKit/WebKit/commit/73d4d6d5e1fd18a8fecdf7595a0c91ce126d74cf
Author: Diego Pino Garcia <[email protected]>
Date: 2026-04-30 (Thu, 30 Apr 2026)
Changed paths:
M
LayoutTests/platform/glib/fast/forms/auto-fill-button/input-strong-password-auto-fill-button-expected.txt
M LayoutTests/platform/glib/fast/text/system-font-features-expected.html
A LayoutTests/platform/glib/fast/text/system-font-legacy-name-expected.txt
M Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp
Log Message:
-----------
[GLIB] Do not resolve '-apple-system' font to default system font
https://bugs.webkit.org/show_bug.cgi?id=209727
Reviewed by Carlos Garcia Campos.
Follow-up to 312073@main.
After 312073@main, Apple system fonts such as '-apple-system' or
'-apple-system-font' are resolved to the default system's font in GLIB ports.
That change produced a regression in how pages using '-apple-system'
fonts are rendered in GLIB ports since, in case the font could not be
resolved, any potential fallback font stated in a page's stylesheet wouldn't
get applied.
Thus, this new patch restores the previous behaviour in which
'-apple-system' fonts do not map to the default system's font in GLIB
ports. In fact, now '-apple-system' fonts exit early to save time trying
to resolve that font.
*
LayoutTests/platform/glib/fast/forms/auto-fill-button/input-strong-password-auto-fill-button-expected.txt:
* LayoutTests/platform/glib/fast/text/system-font-features-expected.html:
* LayoutTests/platform/glib/fast/text/system-font-legacy-name-expected.txt:
Added.
* Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp:
(WebCore::isSystemUIFamilyFont):
(WebCore::isUnsupportedFamilyFont):
(WebCore::FontCache::createFontPlatformData):
Canonical link: https://commits.webkit.org/312351@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications