Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWebRender doesn't respect ClearType parameters #2407
Comments
|
cc @lsalzman |
|
possibly related: on windows, a google spread sheet with |
|
false alarm: that is a bug even vanilla gecko has right now |
|
I tested Firefox Nightly with webrender and Firefox Developer Edition side to side and there was a clear difference in font rendering between the two: #2867 |
|
@automatedbugreportingfacility is this fixed now? #2896 might have fixed it. |
|
I believe this is fixed - @automatedbugreportingfacility could you confirm? |
That's an interesting case. The font rendering inside the URL bar looks identical to my eyes, but I didn't check the pixel values. What's interesting though are the differences in the tab text and in the content. WebRender doesn't use subpixel AA in the tabs yet (that's tracked by bug 1455393), so the tab text difference is expected. However, it looks like non-WebRender doesn't use subpixel AA in the tab content on your machine! That's really unexpected.
This is also interesting but it's probably a separate bug that only affects very large font sizes. |
|
In the very large case I expect you're running into webrender's current upper-bound on glyph-size, where it starts to render at a smaller size and just upscale. A known, separate issue. |
|
Yes, that's just a case of hitting the font size limit. Since we don't use path rasterization above the limit like Skia does, the results won't be the same if you use an absurdly large font size like in that example. |
|
All right, then I recommend closing this issue. |
I can investigate this further, if needed. The setup is pretty regular: the latest Nightly, GeForce GTX 970 running with the latest drivers (8-21-2018). From what I gathered, I can verify that subpixel AA is used or not by zooming into the screenshot and seeing if characters are slightly colored? |
|
Subpixel AA is disabled at huge sizes where the font is scaled up, since the entire idea of subpixels thus breaks down. It's expected. |
That's right. Your test page is the simplest page imaginable, so I'd be surprised if more complicated pages used subpixel AA when this page is not... in any case, this is not a WebRender bug, so if you'd like to investigate this further, please file a bug on bugzilla.mozilla.org in the Graphics: Layers component and we can discuss there. @lsalzman the non-WebRender broken case is the one with the regular font size |
|
Okay, thank you for the comments and fixes. |








Test case:
data:text/html,abcdefghijklmnopqrstuvwxyz
ClearType enabled, Gamma: 2.2 Pixel Structure: BGR ClearType Level: 0 Enhanced Contrast: 0
WebRender off: https://i.imgur.com/bV4HjfK.png
WebRender on: https://i.imgur.com/V3xJ5IN.png
ClearType enabled, Gamma: 2.2 Pixel Structure: RGB ClearType Level: 100 Enhanced Contrast: 400
WebRender off: https://i.imgur.com/zYKWHE0.png
WebRender on: https://i.imgur.com/boU7srJ.png
As can be seen, WebRender gives exactly the same output in both cases.
OS: Windows 10
GPU: Nvidia GeForce GTX 970
Browser: Nightly 60.0a1 (2018-02-11) (64-bit)