Disable (and eventually remove) the force-GDI-classic-mode rendering of certain fonts on Windows
Categories
(Core :: Graphics: Text, enhancement)
Tracking
()
| 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 | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
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.
| Assignee | ||
Comment 3•1 year ago
|
||
Comment 6•1 year ago
|
||
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
Comment 9•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2250c8b7368f
https://hg.mozilla.org/mozilla-central/rev/250b53008ebe
Description
•