A font without <space> is not valid to use as the "first available font" to compute normal line heights
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | affected |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 2 obsolete files)
Various metrics depend on what the spec calls the first available font, which is specified to be the "the first available font that would match the U+0020 (space) character".
However, in some cases gfxFontGroup::GetFirstValidFont
may return a font that does not actually support the character passed as its aCh
argument, and this results in us getting metrics from a font that should not be used for this purpose.
We have several WPT failures in css/css-fonts/first-available-font-* as a result of this bug.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
This fixes the first-available-font-* test failures; before tagging for review I want to check whether it disrupts anything else...
Assignee | ||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D61189
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D61190
Assignee | ||
Comment 6•5 years ago
|
||
Also add a -nospace version that does not include the space glyph, for use by the space-font-1 reftest.
Depends on D61191
Assignee | ||
Comment 7•5 years ago
|
||
Otherwise there's a risk that baseline positioning will vary depending which font is used to provide
the line-height metrics.
Depends on D61192
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9f10c9424a1b
https://hg.mozilla.org/mozilla-central/rev/8f75f5c82eef
https://hg.mozilla.org/mozilla-central/rev/9cdffd787348
https://hg.mozilla.org/mozilla-central/rev/04651272912b
https://hg.mozilla.org/mozilla-central/rev/e09d13ba82eb
https://hg.mozilla.org/mozilla-central/rev/780285749c80
https://hg.mozilla.org/mozilla-central/rev/a1db18981975
Assignee | ||
Comment 15•5 years ago
|
||
The code patch here was backed out in bug 1616268 due to perf regressions.
I have filed https://github.com/w3c/csswg-drafts/issues/4796 to reconsider the behavior currently required by the spec. (The test fixes remain valid, modulo any updates that may be needed if the spec gets changed.)
Updated•5 years ago
|
Updated•5 years ago
|
Updated•2 years ago
|
Description
•