-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Please remove "-webkit-font-smoothing: antialiased" from fonts.google.com #1170
Comments
Thanks for suggesting this; however we want to keep the directory looking like this, to show the fonts off at their best :) |
Just FYI, the fonts are more jagged due to this setting. Here is a close-up comparison of the antialiasing: 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. |
@tanc Since you only need this for your own previewing purposes, why not just create a userscript that will override the 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). |
Why not just fix chrome? |
@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 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: |
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 wouldn't you agree that what looks best is at least somewhat subjective? If |
Hi @sbussard thank you for responding. NO, I would not agree.The single biggest problem with the font smoothing CSS property is that if REDUCES CONTRAST by 30% or more, so that the text can become literally unreadable. It also reduces the rendered WEIGHT of the font, and worse still, it is only partially supported, so many systems don't recognize it at all. As a result, if a designer is using a system that does not support it, yet using a template that has it on by default, they commonly set colors and weight that are then utterly mangled on systems that do support it. This has become an important accessibility issue (the focus of my research).Here is an example:Let's zoom in. Here is font smoothing ON (faux antialiased)Here is the superior subpixel antialiasing, which is default.It is clear that the faux antialias such as Faux antialias is frequently used in ignorance — it has become a part of so many templates that many are unaware it is lurking in the shadows. And it is hurting people by disregarding accessibility, albeit unintentionally. It is pervasive yet UNSEEN by developers that are using unsupported platforms. It solves no problem, yet creates many others.Regarding Apple's use: in their case, Apple is using a font of adequate size and weight, and more importantly a font color that provides very high contrast (140% per the beta SAPC/APCA) so even with the 35% reduction in perceived contrast, there is enough reserve contrast for good readability. And since one might assume that most that visit the Apple site are Apple product users, the consistency issue is not likely a problem. In short, Apple knows what they're doing. But out in the wild, people are using the faux antialiasing (blending) on fonts of weight 300 or less, or small, and with colors that may be barely adequate in contrast normally—so when the faux antialiasing is applied, the reduced 30% contrast makes content unreadable. It is the single biggest accessibility issue in terms of visual content at the moment, affecting all users and not just those with accessibility needs. Thank you, Andrew Somers |
The problem it solves is that Chrome makes fonts look extra bulky by default compared to popular design tools like photoshop. One has to wonder why Apple would even bother adding it if it does not solve a problem. At some point you've got to trust your eyes, or at least ask what the best designers in the world are trusting. To me it looks like Chrome's algorithm doesn't cut it aesthetically. It honestly feels like an argument between developers and designers on what makes good design. Accessibility is important too, but designers are making the tradeoff essentially every time. It's Chrome's algorithm that needs to be updated. |
But only on MacOS right? See https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth and https://caniuse.com/?search=font-smooth where you can see the property is not widely supported and has been removed from the spec. I agree that browsers could tweak their rendering but as far as making things look like Photoshop's default text rendering mode... that seems silly. Instead designers need to get educated about the different rendering across browsers, platforms, devices etc. Having Google Fonts display fonts in a non-standard way makes this much harder.
I think a toggle as suggested in googlefonts/fontbakery-dashboard#50 makes sense, ideally with the default being the browser default and the toggle being the current default (antialiased using non standard css properties) Maybe we should continue the conversation on that issue as this one is closed with the developers stating they aren't going to change things. Or open a new issue in this repository. |
My mistake, that linked issue is only for a web application called Font Bakery, but it isn't clear to me where the project for the UI of Google Fonts resides. @davelab6 should we open an issue somewhere else to continue this conversation? Or is this closed issue the right place? |
I've just taken a look at the https://fonts.google.com site and tried to find instances of Maybe we're arguing for nothing! |
Tested with Safari 13.1.2 on macOS 101.15.6: still used on https://fonts.google.com/ but it's no longer used in the CSS file downloaded from fonts.googleapis.com (at least with the API version 2 "CSS2"). |
Tested on MacOS Catalina 10.15.6 in Chrome 85.0.4183.102, Safari 13.1.2 (15609.3.5.1.3) and there's no The only instance of
|
I'll ask the team to revisit this |
I'm unsubscribing from this issue. It's been three years. Google. |
@chrisdone It’s not necessary to announce it |
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. |
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 |
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? |
Yup, that is the css snippet I quoted in my previous reply |
@davelab6 feel free to close this one. I confirmed that the antialias is only on the logo right now. |
Very happy to close this, thanks everyone for the discussion and thanks to the Google team for removing the lines of CSS. |
You all know that the site where this article was written has -webkit-font-smoothing: antialiased in it's html tag right? |
Dinamo studio gave us new files to fix Firefox problems. Don't use `optimizeLegibility` because it will cause performance issues (loading time) and may cause important undesired behaviours on mobile devices. `geometricPrecision`is sadly interpreted by `optimizeLegibility` on Firefox. So in the end, we decide to not use text-rendering at all, and let browser do what it want by default. https://sonneiltech.com/2020/12/manage-your-websites-legibility-using-text-rendering-and-its-alternatives/ https://bocoup.com/blog/text-rendering Don't use font-smoothing because it can cause legibility issues. Just let the browser do the optimization by itself. https://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/ google/fonts#1170
One day, perhaps over a decade ago, it used to bring visual improvement and consistency to font rendering across browsers and operating systems. But, over the years, the default subpixel-antialising in browsers/OSes produces better results than 'antialiased'. There are many discussions about this on the web, I mention a few: - google/fonts#1170 - https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth - https://web.dev/articles/antialiasing-101 - https://en.wikipedia.org/wiki/Subpixel_rendering
One day, perhaps over a decade ago, it used to bring visual improvement and consistency to font rendering across browsers and operating systems. But, over the years, the default subpixel-antialising in browsers/OSes produces better results than 'antialiased'. There are many discussions about this on the web, I mention a few: - google/fonts#1170 - https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth - https://web.dev/articles/antialiasing-101 - https://en.wikipedia.org/wiki/Subpixel_rendering
One day, perhaps over a decade ago, it used to bring visual improvement and consistency to font rendering across browsers and operating systems. But, over the years, the default subpixel-antialising in browsers/OSes produces better results than 'antialiased'. There are many discussions about this on the web, I mention a few: - google/fonts#1170 - https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth - https://web.dev/articles/antialiasing-101 - https://en.wikipedia.org/wiki/Subpixel_rendering
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?
The text was updated successfully, but these errors were encountered: