[webkit-changes] [WebKit/WebKit] 0bf8c7: Make bold synthesis less agressive
Vitor Roriz
noreply at github.com
Thu Dec 19 17:14:18 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0bf8c7a4ae3fb59b0cca0c79b8f97a54a8914cac
https://github.com/WebKit/WebKit/commit/0bf8c7a4ae3fb59b0cca0c79b8f97a54a8914cac
Author: Vitor Roriz <vitor.roriz at apple.com>
Date: 2024-12-19 (Thu, 19 Dec 2024)
Changed paths:
A LayoutTests/fast/css3-text/font-synthesis-bold-small-font-size-expected.html
A LayoutTests/fast/css3-text/font-synthesis-bold-small-font-size.html
M LayoutTests/fast/text-indicator/text-indicator-estimated-color-with-implicit-newline-expected.txt
M LayoutTests/platform/ios/fast/text/font-weights-zh-expected.txt
M LayoutTests/platform/ios/fonts/fantasy-expected.txt
M LayoutTests/platform/ios/imported/w3c/web-platform-tests/svg/import/fonts-desc-05-t-manual-expected.txt
M LayoutTests/platform/ios/svg/W3C-SVG-1.1-SE/paths-dom-02-f-expected.txt
M LayoutTests/platform/ios/tables/mozilla/bugs/bug2479-3-expected.txt
M LayoutTests/platform/mac-ventura/tables/mozilla/bugs/bug2479-3-expected.txt
M LayoutTests/platform/mac/fast/css/font-face-multiple-faces-expected.txt
M LayoutTests/platform/mac/fast/css/font-face-synthetic-bold-italic-expected.txt
M LayoutTests/platform/mac/fast/css/font-face-weight-matching-expected.txt
M LayoutTests/platform/mac/fast/text/atsui-multiple-renderers-expected.txt
M LayoutTests/platform/mac/fast/text/complex-synthetic-bold-space-width-expected.txt
M LayoutTests/platform/mac/fonts/cursive-expected.txt
M LayoutTests/platform/mac/fonts/fantasy-expected.txt
M LayoutTests/platform/mac/fonts/monospace-expected.png
M LayoutTests/platform/mac/fonts/monospace-expected.txt
M LayoutTests/platform/mac/fonts/sans-serif-expected.png
M LayoutTests/platform/mac/fonts/serif-expected.png
M LayoutTests/platform/mac/imported/w3c/web-platform-tests/svg/import/fonts-desc-05-t-manual-expected.txt
M LayoutTests/platform/mac/imported/w3c/web-platform-tests/svg/import/interact-cursor-01-f-manual-expected.txt
M LayoutTests/platform/mac/svg/W3C-SVG-1.1-SE/paths-dom-02-f-expected.txt
M LayoutTests/platform/mac/svg/W3C-SVG-1.1/interact-cursor-01-f-expected.txt
M LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-3-expected.txt
M Source/WebCore/platform/graphics/coretext/FontCoreText.cpp
Log Message:
-----------
Make bold synthesis less agressive
https://bugs.webkit.org/show_bug.cgi?id=284340
rdar://138047199
Reviewed by Brent Fulgham and Tim Nguyen.
We currently synthesize 'bold' by expanding a glyph's bounding
box by a certain offset. On macOS this offset is always fixed
and don't scale with the font size. This makes the font to appear
signficantly more bold than other engines for reduced font sizes.
We are now using an offset that scales with the font size for macOS.
We already do that for iOS, so we are unifying both paths and tweaking
the scaling factor.
* LayoutTests/fast/css3-text/font-synthesis-bold-small-font-size-expected.html: Added.
* LayoutTests/fast/css3-text/font-synthesis-bold-small-font-size.html: Added.
* Source/WebCore/platform/graphics/coretext/FontCoreText.cpp:
(WebCore::Font::platformInit):
Canonical link: https://commits.webkit.org/288130@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list