Skip to content

Please remove "-webkit-font-smoothing: antialiased" from fonts.google.com #1170

Description

@tanc

The css rule -webkit-font-smoothing: antialiased; has been applied to all fonts.google.com pages where fonts are rendered. This results in browsers using the greyscale antialiasing method rather than default subpixel rendering of fonts. I believe this was probably introduced to get around inconsistencies in rendering between browsers, particular between Chrome and Safari on MacOS.

I understand that Chrome, since around version 50, has upgraded the rendering engine to support sub pixel rendering. The default rendering of fonts across browsers now looks almost the same (Firefox also got the upgrade).

When previewing fonts on fonts.google.com they are being rendering in a non-default way that makes them look different from when they are rendered on a different site that does not apply -webkit-font-smoothing: antialiased;

Can you please consider removing this css rule and let the browsers choose how to render the fonts so we can have more accurate previews of what they will look like when we use them?

Activity

  1. added this to the milestone on Aug 28, 2017
  2. davelab6 commented on Sep 21, 2017

    @davelab6
    Member

    Thanks for suggesting this; however we want to keep the directory looking like this, to show the fonts off at their best :)

  3. chrisdone commented on Mar 27, 2018

    @chrisdone

    Just FYI, the fonts are more jagged due to this setting. Here is a close-up comparison of the antialiasing:

    image

    The bottom bit is with this CSS property turned off. You can see it's smoother (ever so slightly thicker; just the right amount), and looks way better on a Retina screen. I'm surprised anybody would use this property as it makes my eyes hurt reading text at a normal paragraph font size. I'm currently researching ways to turn it off.

  4. fitojb commented on Apr 28, 2018

    @fitojb
    Contributor
  5. EricSeastrand commented on Sep 6, 2018

    @EricSeastrand

    @tanc Since you only need this for your own previewing purposes, why not just create a userscript that will override the -webkit-font-smoothing CSS property on those Google Font pages when you view them?

    While I agree with you that font antialiasing is an antipattern, and that subpixel rendering is better in [almost] every way, I understand the motivation behind this: mobile devices can't support sub-pixel rendering because their screens must work in multiple orientations. Using antialiasing across the board ensures consistency (even if the results are less than ideal on computer screens).

  6. sbussard commented on Feb 16, 2019

    @sbussard

    Why not just fix chrome?

  7. vicentiu2 commented on Apr 5, 2019

    @vicentiu2

    @willcodeforfood, I've never worked with userscripts, but I'm willing to learn to create one to disable font smoothing everywhere since it tires my eyes significantly. I installed Tapermonkey, read some documentation and tried a couple of scripts (attached), but nothing changed.
    If you can provide some pointers about what I'm doing incorrectly, I would appreciate it.
    I even tried downloading some pages and modified the -webkit-font-smoothing in the css to none, but still the fonts were smoothed.
    thanks
    script1.txt
    script2.txt

  8. RiZKiT commented on Oct 7, 2019

    @RiZKiT

    If someone still needs to fix this, use a browser plugin like stylish or stylus, there you can adjust webpage styles, without using a script plugin. Then import this style for example:
    https://userstyles.org/styles/111304/chrome-font-fix

  9. Myndex commented on Sep 11, 2020

    @Myndex

    Thanks for suggesting this; however we want to keep the directory looking like this, to show the fonts off at their best :)

    Hi @davelab6 and @tanc

    I realize this is a closed topic, but "-webkit-font-smoothing: antialiased;" and other font smoothing properties do NOT show fonts off at their best. What does show fonts at their best is the DEFAULT for the given device, and this is nearly always subpixel antialiasing. The font-smoothing "antialiasing" property is inferior to the default subpixel antialiasing both in quality and by reducing contrast needlessly.

    Using "-webkit-font-smoothing: antialiased;" is not a feature, it's a bug, and font smooth is a CSS property that should be depreciated. Best results are to use the device's default antialias which is optimized for that device. That provides the best and most consistent results.

    See also: http://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/

    Thank you,

    Andrew Somers
    Myndex Color Science Researcher
    W3C WAI/WCAG Invited Expert

  10. sbussard commented on Sep 12, 2020

    @sbussard

    @Myndex wouldn't you agree that what looks best is at least somewhat subjective?

    If -webkit-font-smoothing: antialiased is used on Apple.com, it looks more similar to photoshop's font rendering algorithm than Chrome's default, and developers and users alike seem to prefer it, then maybe it's worth considering if the default algorithm is really as good as some claim it is.

  11. 10 remaining items

  12. fitojb commented on Sep 16, 2020

    @fitojb
    Contributor

    @chrisdone It’s not necessary to announce it

  13. Myndex commented on Sep 18, 2020

    @Myndex

    Hi @alinacsava @thlinard @tanc

    Indeed perhaps this is not the thread to discuss... looking at the age, I'm wondering how it happened to pop up to me, but the use of -webkit-font-smoothing: antialiased; and -moz-osx-font-smoothing: grayscale is a real and persistent problem across the net.

    The problem really rears it ugly head when used in combination with thin fonts. This experiment from last year: https://www.myndex.com/WEB/WCAG_CE14antialias has test panels all with antialias on. Going into the inspector and then toggling it on and off you can see the substantial difference in contrast.

  14. Myndex commented on Sep 18, 2020

    @Myndex

    I'll ask the team to revisit this

    I've investigated this further — it appears that -webkit-font-smoothing: antialiased; is only applied to the word "Fonts" next to the Google logo on the google fonts pages, and not to the font samples.

    Sorry if any of my earlier comments created a mountain from a molehill... I suppose I should look at dates more

  15. tanc commented on Sep 18, 2020

    @tanc
    Author

    Yes it doesn't look like those css rules are applied any more, so I don't think we need to be asking for anything. Maybe the google fonts team can drop a note in here to confirm the rules are no longer applied and close the issue if that is the case?

  16. MadeByArne commented on Sep 18, 2020

    @MadeByArne

    I've investigated this further — it appears that -webkit-font-smoothing: antialiased; is only applied to the word "Fonts" next to the Google logo on the google fonts pages, and not to the font samples.

    Yup, that is the css snippet I quoted in my previous reply

  17. tomasdev commented on Sep 18, 2020

    @tomasdev
    Contributor

    @davelab6 feel free to close this one. I confirmed that the antialias is only on the logo right now.

  18. tanc commented on Sep 18, 2020

    @tanc
    Author

    Very happy to close this, thanks everyone for the discussion and thanks to the Google team for removing the lines of CSS.

  19. DannyvanHolten commented on Oct 5, 2020

    @DannyvanHolten

    http://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/

    You all know that the site where this article was written has -webkit-font-smoothing: antialiased in it's html tag right?

  20. added a commit that references this issue on May 25, 2022
  21. added a commit that references this issue on Sep 26, 2025
  22. added a commit that references this issue on Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions