fonts: Add synthetic bold face support for Windows#39633
Conversation
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
|
🔨 Triggering try run (#18190861332) for Linux (WPT) |
|
Test results for linux-wpt from try job (#18190861332): Flaky unexpected result (25)
Stable unexpected results that are known to be intermittent (37)
Stable unexpected results (2)
|
|
|
Signed-off-by: minghuaw <[email protected]>
Signed-off-by: minghuaw <[email protected]>
Signed-off-by: minghuaw <[email protected]>
Signed-off-by: minghuaw <[email protected]>
|
I didn't realize that the |
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: minghuaw <[email protected]>
…synthesizing bold face for FreeType platform (#39681) The previous implementation in #39519 mistakenly used the `FontTemplateDescriptor` to determine whether the font face itself is already bold. This PR fixes that by using the `usWeightClass` in the `OS/2` table of the font face to determine if the font face is bold already. Testing: A new testcase `/tests/wpt/mozilla/tests/css/font_synthesis_weight_static_bold.html` is getting added in #39633. This test checks whether a bold font face gets "double emboldened" Depends on: #39633 --------- Signed-off-by: Minghua Wu <[email protected]> Signed-off-by: minghuaw <[email protected]> Co-authored-by: Martin Robinson <[email protected]>
|
dwrote was updated in #39699. |
b279715 to
2fdaec1
Compare
Thanks! Updated the branch to main. This PR is ready for another quick review @xiaochengh (I've added |
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
tests/wpt/mozilla/tests/css/font_synthesis_weight_static_bold.html
Outdated
Show resolved
Hide resolved
Signed-off-by: Minghua Wu <[email protected]>
|
LGTM, thanks. Please let me know if it's ready to merge. |
Let me test this with the new WPT test |
This is ready to get merged. Thanks! |
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