fonts: Do not apply synthetic bold if font is already bold for webfont on FreeType platform#39713
Conversation
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
|
|
Sure. Do we need to open an issue or something on the WPT repo? Edit: seems like this is automatically handled by the WPT sync bot |
Signed-off-by: Minghua Wu <[email protected]>
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#55313) with upstreamable changes. |
…rData Signed-off-by: Minghua Wu <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55313). |
Signed-off-by: Minghua Wu <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55313). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#55313) title and body. |
This PR follows #39519 and adds synthetic bold face support for MacOs platform. Testing: There are existing WPT testcases for font synthesis (wpt/css/css-fonts/font-synthesis-*). A new test checking that a bold face font does not get "double emboldened" is getting added in #39713 Part of #39637 --------- Signed-off-by: minghuaw <[email protected]>
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.htmlthat checks if an already-bold webfont is "double emboldened"Part of #39637