Skip to content

Enable font-synthesis-weight support for servo#244

Merged
jdm merged 5 commits intoservo:mainfrom
minghuaw:feat/synthetic-bold
Oct 1, 2025
Merged

Enable font-synthesis-weight support for servo#244
jdm merged 5 commits intoservo:mainfrom
minghuaw:feat/synthetic-bold

Conversation

@minghuaw
Copy link
Copy Markdown
Contributor

@minghuaw minghuaw commented Sep 26, 2025

Modified mako templates to enable font-synthesis-weight support for servo. Added necessary derive macros for FontSynthesis

@Loirooriol
Copy link
Copy Markdown
Collaborator

Can you open a companion PR in Servo, to run tests?

@minghuaw
Copy link
Copy Markdown
Contributor Author

I've opened a draft PR in servo servo/servo#39519

github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Oct 1, 2025
This is an initial attempt at implementing synthetic bold face for font
families that lack actual bold faces. The overall approach borrowed
implementations from Chromium and FireFox. WPT expectations will be
updated after servo/stylo#244 lands

Testing: There are existing WPT testcases for font synthesis
(`wpt/css/css-fonts/font-synthesis-*`)

Depends on: servo/stylo#244

---------

Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: minghuaw <[email protected]>
@jdm jdm added this pull request to the merge queue Oct 1, 2025
Merged via the queue into servo:main with commit d10ddec Oct 1, 2025
5 checks passed
@minghuaw minghuaw deleted the feat/synthetic-bold branch October 1, 2025 11:54
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Oct 1, 2025
This is an initial attempt at implementing synthetic bold face for font
families that lack actual bold faces. The overall approach borrowed
implementations from Chromium and FireFox. WPT expectations will be
updated after servo/stylo#244 lands

Testing: There are existing WPT testcases for font synthesis
(`wpt/css/css-fonts/font-synthesis-*`)

Depends on: servo/stylo#244

---------

Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: minghuaw <[email protected]>
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Oct 1, 2025
This is an initial attempt at implementing synthetic bold face for font
families that lack actual bold faces. The overall approach borrowed
implementations from Chromium and FireFox. WPT expectations will be
updated after servo/stylo#244 lands

Testing: There are existing WPT testcases for font synthesis
(`wpt/css/css-fonts/font-synthesis-*`)

Depends on: servo/stylo#244

---------

Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: minghuaw <[email protected]>
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Oct 1, 2025
This is an initial attempt at implementing synthetic bold face for font
families that lack actual bold faces. The overall approach borrowed
implementations from Chromium and FireFox. WPT expectations will be
updated after servo/stylo#244 lands

Testing: There are existing WPT testcases for font synthesis
(`wpt/css/css-fonts/font-synthesis-*`)

Depends on: servo/stylo#244

---------

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants