fonts: Initial draft of synthetic bold face for FreeType#39519
fonts: Initial draft of synthetic bold face for FreeType#39519jdm merged 24 commits intoservo:mainfrom
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]>
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]>
Signed-off-by: Minghua Wu <[email protected]>
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
Signed-off-by: Minghua Wu <[email protected]>
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
Signed-off-by: Minghua Wu <[email protected]>
Signed-off-by: Minghua Wu <[email protected]>
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
Signed-off-by: Minghua Wu <[email protected]>
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
Signed-off-by: Minghua Wu <[email protected]>
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
Signed-off-by: Minghua Wu <[email protected]>
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
|
Tried to run WPT tests multiple times and some tests under Link to WPT test attempts:
|
Signed-off-by: Minghua Wu <[email protected]>
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
Signed-off-by: Minghua Wu <[email protected]>
|
🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync. |
…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]>
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 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]>
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