Closed Bug 1867381 Opened 2 years ago Closed 2 years ago

Please add Meiryo font to the blacklist which have wrong underline offset

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 121
defect

Tracking

()

RESOLVED DUPLICATE of bug 1848367

People

(Reporter: tookunana, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0

Steps to reproduce:

When I access Youtube, "Read more" keeps appearing at the bottom.
https://bugzilla.mozilla.org/show_bug.cgi?id=1703084

After adding Meiryo to font.blacklist.underline_offset, "Read more" disappeared

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

jfkthame or masayuki, I think this is in your wheelhouse, when you've got cycles. (Looks like this font.blacklist.underline_offset pref is from bug 417014 and bug 541924 .)

Severity: -- → S3
Depends on: 417014
Flags: needinfo?(jfkthame)

it sounds like this fixes bug 1703084, based on comment 0 here and bug 1703084 comment 4. --> adding dependency.

Presumably there are underlines in the text here, which introduce some sort of visual overflow due to weird/unexpected metrics in this font; and that causes YouTube to clip the overflow and add a "Read More" link to show the overflowing content. (But if we blacklist the font and get proper metrics or whatever, then the overflow doesn't happen.)

Blocks: 1703084

No, adding "Meiryo" to the pref does not fix bug 1703084 completely in non-100% DPI displays. And I don't think the underline offset of Meiryo is bad. So, doing this only for specific web page must be wrong approach.

FYI: Meiryo has bigger leading than usual fonts. That could affect to the overflow rect even though the line-height is computed as 20px in both browsers.

Setting the line-height to 21px, the layout becomes as expected. So I think that 20px is too tight for Meiryo or there is a rounding issue in our size computation in nscoord coordinates.

If I load a video which has many comments, I see the bug at some comments, but the others rendered as expected. So, height computation in nscoord might cause the bug. So, this could be content box version of bug 287624.

This seems to be basically the same issue as bug 1848367, related to Meiryo line-height computation.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1848367
Flags: needinfo?(jfkthame)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.