Skip to content

fonts: Do not apply synthetic bold if font is already bold for webfont on FreeType platform#55313

Merged
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_39713
Oct 9, 2025
Merged

fonts: Do not apply synthetic bold if font is already bold for webfont on FreeType platform#55313
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_39713

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

@servo-wpt-sync servo-wpt-sync commented Oct 8, 2025

This is to fix my oversight in the previous PR #39681 where the use of OS/2 table to determine a synthetic bold face should be applied is not applied to web font.

Testing: Added a new test tests/wpt/mozilla/tests/css/font_synthesis_weight_webfont_bold.html that checks if an already-bold webfont is "double emboldened"
Part of #39637
Reviewed in servo/servo#39713

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

Signed-off-by: Minghua Wu <[email protected]>
@servo-wpt-sync servo-wpt-sync merged commit c78811c into web-platform-tests:master Oct 9, 2025
25 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_39713 branch October 9, 2025 10:29
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Oct 10, 2025
This PR follows #39519 and adds synthetic bold face support for Windows
platform.

Testing: There are existing WPT testcases for font synthesis
(wpt/css/css-fonts/font-synthesis-*). A new test that checks for "double
emboldening" (a bold font gets emboldened again) is getting added to the
upstream WPT repo (web-platform-tests/wpt#55313)
Depends on: servo/dwrote-rs#70,
servo/dwrote-rs#71
Part of #39637

---------

Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: minghuaw <[email protected]>
Co-authored-by: minghuaw <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants