LCD subpixel rendering is inconsistently applied
Categories
(Core :: Graphics: Text, defect, P3)
Tracking
()
People
(Reporter: t.ambetarak, Unassigned)
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Steps to reproduce:
My operating system (Arch Linux x86-64, up to date) is configured (via fontconfig) to render fonts using RGB subpixel rendering. Generally, Firefox does apply subpixel rendering, but this is inconsistent and exceptions seem to become more frequent with every release. Hence the bug report to draw attention to the issue. The issue applies to both the chrome and rendered web pages.
I have attached a zip archive with screenshots to illustrate the issue:
- ff-lcd-bug-bugzilla.png - Ironically, the issue is present when logging in to the Firefox bug tracker (e-mail address field content).
- ff-lcd-bug-gmail.png - All of GMail is rendered in grayscale.
- ff-lcd-bug-stackexchange.png - Stack Exchange is rendered in grayscale
- ff-lcd-bug-tabs.png - Chrome issue. The text on the tabs is rendered in grayscale. In comparison, text in the URL bar is rendered correctly using subpixel rendering.
- ff-lcd-bug-urlbar.png - If the text in the URL bar overflows the container, rendering reverts to grayscale here as well.
- ff-lcd-bug-urlbar-history.png - URL bar history is rendered in grayscale.
- ff-lcd-bug-grayscale-example.png - Zoomed in example of incorrect (grayscale) rendering
- ff-lcd-bug-bugzilla.png - Zoomed in example of correct (subpixel) rendering
I noticed there has been some recent work regarding subpixel rendering, but on the face of it, this patch only seems to constrict cases where subpixel rendering is used:
https://hg.mozilla.org/mozilla-central/file/tip/gfx/cairo/disable-subpixel-antialiasing.patch
Actual results:
Subpixel rendering, if configured in the OS via fontconfig, is applied inconsistently in both the chrome and rendered web pages.
Expected results:
Subpixel rendering should be applied consistently everywhere.
Comment 1•4 years ago
|
||
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 revert this change in case you think the bot is wrong.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
We're always working on improving support here. Thanks for the detailed report.
Can confirm. Also I have found places where rendering type switches on the fly for unclear reasons.
Comment on attachment 9242934 [details]
font-render-issues.mp4
Very weird example. Look at the bottom text.
Description
•