macOS text rendering worse with WebRender
Categories
(Core :: Graphics: WebRender, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: sam, Assigned: lsalzman)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:79.0) Gecko/20100101 Firefox/79.0
Steps to reproduce:
- Enable
gfx.webrender.all
preference - Restart Firefox
- Observe noticeably worse text rendering
Actual results:
There appears to be a "grey fringe" around text when WebRender is enabled on macOS. This is primarily noticeable when a non-greyscale text color is used. This causes text to look much different than it does without WebRender, and when compared to other browsers.
Expected results:
Text with a non-greyscale color in WR should look as it does throughout the OS, other browsers, and when WR is disabled.
Reporter | ||
Comment 1•5 years ago
|
||
Here is the page used in the screenshot.
Reporter | ||
Comment 2•5 years ago
|
||
Here is my about:support. Note that while I do also have gfx.webrender.compositor
enabled, the result is the same regardless of this value.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 3•5 years ago
|
||
A few additional pieces of information:
- Example is from macOS 10.13.6
- macOS "LCD font smoothing" preference is disabled
- A non-retina display was used (it's probably harder to notice on a retina display)
- WR and non-WR screenshots are from the same profile
Comment 4•5 years ago
|
||
Hi Sam, thank you for the detailed bug report!
Do you know whether this has always been the case with webrender enabled, or whether it is a recent regression?
Reporter | ||
Comment 5•5 years ago
|
||
Not a recent regression, it's been the case as long as I can remember.
Assignee | ||
Comment 6•5 years ago
|
||
Depending on whether font smoothing is requested, we apply post-processing to
the rasterized glyph which can include undoing the gamma, which varies between
smoothed and grayscale AA. If we accidentally do this when no font smoothing
is applied, this can result in significantly distorted glyphs. Skia currently
checks if font smoothing works, so seems to gracefully handle this case, while
WebRender does no such check and so doesn't do the right thing here. This adds
a check higher up in the platform font list so that we handle this properly
regardless of which backend is used.
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Hello,
I have tried to reproduce this issue on 2 different MacBook Pro models. (a mid 2015 15" retina display, and a mid 2012 13" non retina display) and did not manage to encounter it on affected build from 2020-06-13.
Can you please try to verify this on the latest beta and see if the issue is fixed?
Thank you
Comment 11•5 years ago
|
||
(In reply to Vlad Lucaci, QA (:vlucaci) from comment #10)
Hello,
I have tried to reproduce this issue on 2 different MacBook Pro models. (a mid 2015 15" retina display, and a mid 2012 13" non retina display) and did not manage to encounter it on affected build from 2020-06-13.
Can you please try to verify this on the latest beta and see if the issue is fixed?
Thank you
What version of macOS were you running?
Reporter | ||
Comment 12•5 years ago
|
||
This is significantly improved after the patch. Thanks lsalzman! I have verified the following configurations now all have the correct rendering:
- macOS 10.13.6 with "LCD font smoothing" on
- macOS 10.13.6 with "LCD font smoothing" off
- macOS 10.15.5 with "font smoothing" on
- macOS 10.15.5 with "font smoothing" off
Comment 13•5 years ago
|
||
In both instances , I was using 10.15.5.
Comment 14•5 years ago
|
||
(In reply to Vlad Lucaci, QA (:vlucaci) from comment #13)
In both instances , I was using 10.15.5.
That's weird. Can you post a screenshot from the affected version.
Comment 15•5 years ago
|
||
Hi Jeff, here's an attachment from the affected version (2020-06-13), with webrender enabled and font smoothing off (macbook retina, 10.15.6) in comparison with the same page in chrome.
Comment 16•5 years ago
|
||
(In reply to Catalin Sasca, QA [:csasca] from comment #15)
Created attachment 9164341 [details]
Lorem ipsum example.pngHi Jeff, here's an attachment from the affected version (2020-06-13), with webrender enabled and font smoothing off (macbook retina, 10.15.6) in comparison with the same page in chrome.
Ok, yeah. That screenshot shows the problem. Notice the gray fringing around the letters compared to Chrome.
Description
•