| CARVIEW |
Navigation Menu
-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fonts: Add synthetic bold face support for Windows #39633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
|
🔨 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)
|
|
|
xiaochengh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
Signed-off-by: minghuaw <wuminghua7@huawei.com>
Signed-off-by: minghuaw <wuminghua7@huawei.com>
Signed-off-by: minghuaw <wuminghua7@huawei.com>
Signed-off-by: minghuaw <wuminghua7@huawei.com>
|
I didn't realize that the |
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
Signed-off-by: minghuaw <wuminghua7@huawei.com>
…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 <michael.wu1107@gmail.com> Signed-off-by: minghuaw <michael.wu1107@gmail.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
|
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 <michael.wu1107@gmail.com>
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
tests/wpt/mozilla/tests/css/font_synthesis_weight_static_bold.html
Outdated
Show resolved
Hide resolved
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
|
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