-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fonts: Add support for the CSS font matching algorithm #32366
Conversation
🔨 Triggering try run (#9222766068) for Linux WPT |
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)
|
|
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. |
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.
/// have a complex set of fonts. | |
/// have a complex set of fonts. |
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.
I've fixed this one.
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
@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 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 -d
does not report any errors./mach test-tidy
does not report any errors