Closed Bug 2067555 Opened 5 days ago Closed 3 days ago

Bottom of text in UI slightly cut

Categories

(Core :: Graphics: Text, defect)

Desktop
Unspecified
defect

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox-esr153 --- unaffected
firefox155 --- wontfix
firefox156 --- wontfix
firefox157 --- fixed

People

(Reporter: mercichao, Assigned: gw)

References

(Regression)

Details

(Keywords: nightly-community, regression)

Attachments

(2 files)

Attached video 2026_08_30_12_12_44.mp4

The bottom of text in certain UI elements is slightly cut off. For example, in the bookmarks toolbar and the hamburger menu, the descenders of letters such as “g” are clipped.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: Theme → Graphics: Text
Product: Firefox → Core
Hardware: Unspecified → Desktop

Set release status flags based on info from the regressing bug 2050692

:gw, since you are the author of the regressor, bug 2050692, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

A glyph pen is sub-pixel positioned on one axis and rounded to a whole device
pixel on the other. Bug 2050692 left the clip exact on both, but that is only
needed on the sub-pixel axis: elsewhere an exact clip disagrees with the grid the
glyphs landed on, and since the shader clamps the glyph quad with no coverage
term, a clip edge falling mid-row drops that row of ink outright.

Nearest is the rounding that works: the line box is ascent + descent, so the clip
and the pen are both round(box offset + an integer) and stay flush at every
phase. Bug 2055145 rounded outward instead, which spills a pixel whenever the ink
does not round up (bug 2065629).

So derive the axes from the font's SubpixelDirection, mirroring the snap_bias
table it already drives; local-raster runs snap in raster space, so leave them.
The snap is applied in request_resources and stored on the run's scratch, so
culling still sees the unsnapped clip.

Exact and nearest differ only at the .5 tie, which is where the reftest puts it.

Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Flags: needinfo?(mozilla)
See Also: → 2067740
Pushed by gwatson@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ae6e50e39a18 https://hg.mozilla.org/integration/autoland/rev/85dfd4ebc2d0 Quantise a text run's clip on the axes its glyphs are snapped on r=gfx-reviewers,nical
Status: ASSIGNED → RESOLVED
Closed: 3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch

The patch landed in nightly and beta is affected.
:gw, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(mozilla)
Flags: needinfo?(mozilla)
Duplicate of this bug: 2067740
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: