Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fonts not rendered with subpixel antialiasing #10199

Closed
gordonbrander opened this issue Mar 25, 2016 · 6 comments
Closed

Fonts not rendered with subpixel antialiasing #10199

gordonbrander opened this issue Mar 25, 2016 · 6 comments

Comments

@gordonbrander
Copy link

@gordonbrander gordonbrander commented Mar 25, 2016

Here's a screenshot of text rendered in Servo. (I've used a loupe app to magnify the text so you can see the antialiasing pixels). The text is rendered without sub-pixel antialiasing.

screen shot 2016-03-25 at 16 13 39

Here's the same page rendered in Firefox. Fonts are rendered with sub-pixel antialiasing.

screen shot 2016-03-25 at 16 14 06

You can see a significant difference in the resulting text. The text in Servo appears "thin" and weak, whereas text in Firefox, Safari and Chrome has a rounder, fatter feel.

cc @metajack

@yump
Copy link

@yump yump commented Jul 2, 2016

I don't think it's just a lack of subpixel AA. That shouldn't make a difference to the weight of the font. Either the greyscale AA renderer is not gamma correct, or it's using (eugh!) hinting.

@cbrewster
Copy link
Member

@cbrewster cbrewster commented Jul 2, 2016

Possibly fixed by #11103?

@raphlinus
Copy link

@raphlinus raphlinus commented Aug 2, 2016

There's definitely RGB subpixel rendering present in the Firefox screenshot. It also looks like there's anemic gamma in the Servo screenshot. (Many people consider adjusting gamma to be linear-intensity to be "correct" but I disagree with that). It doesn't look like there's a problem with over-hinting, but it's hard to say for sure.

See btw https://www.freetype.org/freetype2/docs/text-rendering-general.html for a little more background on gamma and subpixel AA.

@notriddle
Copy link
Contributor

@notriddle notriddle commented Aug 2, 2016

Note that I have grayscale AA turned on everywhere. Servo's doing something else wrong, my guess is it's doing anti-aliasing twice or it's simply grabbing an overly-thin font.

antialiasing

@jonathandturner
Copy link

@jonathandturner jonathandturner commented Aug 25, 2016

I'm also seeing this. When the browserhtml startup screen is resized, you can lose the expected anti-aliasing on the fonts.

At some sizes (closer to expected):
screen shot 2016-08-25 at 9 34 29 am

At other sizes (notices how font rendering loses aliasing/parts of the font render):
screen shot 2016-08-25 at 9 33 40 am

@nox
Copy link
Member

@nox nox commented Oct 1, 2017

I cannot reproduce this anymore.

@nox nox closed this Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.