fonts: Add support for the CSS font matching algorithm#32366
Merged
mukilan merged 2 commits intoservo:mainfrom May 24, 2024
Merged
fonts: Add support for the CSS font matching algorithm#32366mukilan merged 2 commits intoservo:mainfrom
mukilan merged 2 commits intoservo:mainfrom
Conversation
|
🔨 Triggering try run (#9222766068) for Linux WPT |
mukilan
reviewed
May 24, 2024
mukilan
reviewed
May 24, 2024
2259239 to
ab90b39
Compare
|
Test results for linux-wpt-layout-2013 from try job (#9222766068): Flaky unexpected result (17)
Stable unexpected results that are known to be intermittent (15)
Stable unexpected results (1)
|
|
Test results for linux-wpt-layout-2020 from try job (#9222766068): Flaky unexpected result (16)
Stable unexpected results that are known to be intermittent (10)
Stable unexpected results (1)
|
|
|
mukilan
approved these changes
May 24, 2024
components/gfx/font_store.rs
Outdated
| /// A struct that represents the available templates in a "simple family." A simple family | ||
| /// is one that contains <= 4 available faces: regular, bold, italic, and bold italic. Having | ||
| /// this simple family abstraction makes font matching much faster for families that don't | ||
| /// have a complex set of fonts. |
Member
There was a problem hiding this comment.
Suggested change
| /// have a complex set of fonts. | |
| /// have a complex set of fonts. |
This is a port from Gecko of the CSS font matching algorithm distance functions as well as the "simple family" concept for optimizing matching when dealing with simple fonts. Fixes servo#189. Fixes servo#190. Fixes servo#20686. Fixes servo#20684. Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com>
ab90b39 to
7cd0f68
Compare
Member
Author
|
@mukilan Thanks for the reviews. I think I have addressed all of your comments as well as fixing the test by ensuring that we clean up |
|
🔨 Triggering try run (#9225446011) for Linux WPT |
|
Test results for linux-wpt-layout-2020 from try job (#9225446011): Flaky unexpected result (14)
Stable unexpected results that are known to be intermittent (16)
|
|
Test results for linux-wpt-layout-2013 from try job (#9225446011): Flaky unexpected result (8)
Stable unexpected results that are known to be intermittent (12)
|
|
✨ Try run (#9225446011) succeeded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a port from Gecko of the CSS font matching algorithm distance
functions as well as the "simple family" concept for optimizing
matching when dealing with simple fonts.
Fixes #189.
Fixes #190.
Fixes #20686.
Fixes #20684.
Co-authored-by: Mukilan Thiyagarajan mukilan@igalia.com
Signed-off-by: Martin Robinson mrobinson@igalia.com
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors