Closed Bug 1920733 Opened 1 year ago Closed 1 year ago

Disable (and eventually remove) the force-GDI-classic-mode rendering of certain fonts on Windows

Categories

(Core :: Graphics: Text, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame, NeedInfo)

References

Details

Attachments

(2 files)

We currently force a small list of legacy fonts to use "GDI Classic" rendering, which tends to apply more aggressive hinting (and therefore affect metrics) than normal DirectWrite rendering modes. For better consistency with rendering in other contexts and applications, it would be nice to remove this hack and apply the same ClearType mode everywhere.

Some users may dislike such a change, if they specifically prefer the "GDI Classic" look for these fonts, but it's difficult to anticipate how it will be received; it should result in more consistent scaling and metrics that better match other browsers, so there may also be significant benefits. (E.g. see bug 1722963.)

As a first step, we can turn the behavior off via a prefs change, while leaving the code in place in case we need to revert.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Summary: Disable (and eventually removing) the force-GDI-classic-mode rendering of certain fonts on Windows → Disable (and eventually remove) the force-GDI-classic-mode rendering of certain fonts on Windows

Unsurprisingly, tryserver says that a number of reftests will be affected by this: https://treeherder.mozilla.org/jobs?repo=try&revision=c0f201c022b7e74807d6b04a9ea81478e15e4eca. I think (at first glance, anyhow) that the differences are all minor/benign changes in precise glyph positioning, but will need to look them over more carefully and adjust annotations before we land this.

Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/612816a6ef09 For Nightly and early Beta, stop forcing GDI Classic rendering on certain core Windows fonts. r=jrmuizel https://hg.mozilla.org/integration/autoland/rev/f28e910b3409 Adjust fuzzy annotations etc for testcases affected by disabling the forced-gdi-classic rendering pref. r=gfx-reviewers,lsalzman
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/48558 for changes under testing/web-platform/tests

Backed out for causing windows reftests failures in select-4-ref.html.

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: REFTEST TEST-UNEXPECTED-FAIL | layout/reftests/abs-pos/select-4.html == layout/reftests/abs-pos/select-4-ref.html | image comparison, max difference: 1, number of differing pixels: 8
Flags: needinfo?(jfkthame)
Upstream PR was closed without merging
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2250c8b7368f For Nightly and early Beta, stop forcing GDI Classic rendering on certain core Windows fonts. r=jrmuizel https://hg.mozilla.org/integration/autoland/rev/250b53008ebe Adjust fuzzy annotations etc for testcases affected by disabling the forced-gdi-classic rendering pref. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1925481
Regressions: 1925482
Regressions: 1926236
See Also: → 1919906
See Also: → 1938043
Blocks: 1942335
See Also: → 1884362
See Also: → 1884710
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: