Repository navigation
fonts: Merge multiple methods into PlatformFont::descriptor() - #32115
Merged
Merged
Conversation
|
🔨 Triggering try run (#8756343927) for Linux WPT, MacOS, Windows, Android |
|
|
mrobinson
force-pushed
the
platformfont-descriptor
branch
from
April 19, 2024 17:13
d8c555e to
f6abbed
Compare
|
🔨 Triggering try run (#8757216594) for Linux WPT, MacOS, Windows, Android |
|
Test results for linux-wpt-layout-2013 from try job (#8757216594): Flaky unexpected result (17)
Stable unexpected results that are known to be intermittent (9)
|
|
Test results for linux-wpt-layout-2020 from try job (#8757216594): Flaky unexpected result (23)
Stable unexpected results that are known to be intermittent (10)
|
|
|
Member
Author
|
@mukilan This is a another cleanup on top of the work we have done to streamline the font loading code. |
mrobinson
force-pushed
the
platformfont-descriptor
branch
from
April 19, 2024 18:20
f6abbed to
fbbff12
Compare
|
🔨 Triggering try run (#8757947457) for Windows |
|
|
mrobinson
force-pushed
the
platformfont-descriptor
branch
from
April 20, 2024 07:53
fbbff12 to
c11f20a
Compare
|
🔨 Triggering try run (#8764762028) for Windows |
|
✨ Try run (#8764762028) succeeded. |
mrobinson
force-pushed
the
platformfont-descriptor
branch
from
April 22, 2024 07:02
c11f20a to
a03de35
Compare
This combines `style()`, `boldness()`, `stretchiness()` into a `descriptor()` method which is used when creating `FontTemplate`s for web fonts. Eventually this method will simply read font tables using skrifa. This is the first step. In addition, `family_name()` and `face_name()` are removed. They were only used for debugging and the `FontIdentifier` serves for that. On Windows, this was adding another way in which font loading could fail, without buying us very much. The path or URL to the font is more important when debugging than the names in the font tables.
mrobinson
force-pushed
the
platformfont-descriptor
branch
from
April 23, 2024 08:22
a03de35 to
88fd4b8
Compare
mrobinson
marked this pull request as ready for review
April 23, 2024 08:23
Member
Author
|
This one should be ready to review now. |
mukilan
approved these changes
Apr 23, 2024
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 combines
style(),boldness(),stretchiness()into adescriptor()method which is used when creatingFontTemplates forweb fonts. Eventually this method will simply read font tables using
skrifa. This is the first step.
In addition,
family_name()andface_name()are removed. They wereonly used for debugging and the
FontIdentifierserves for that. OnWindows, this was adding another way in which font loading could fail,
without buying us very much. The path or URL to the font is more
important when debugging than the names in the font tables.
Closes #15103.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors