-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Turn antialiasing on for Chrome to match behaviour across browsers #598
Comments
this will affect chrome/win, chrome/mac, safari/win, and safari/mac when i think you only want it affecting chrome/win.. :/ |
Indeed, I have not tested other platforms yet though. EDIT: |
I've just checked Safari, I was mistaken in that it also does not antialias by default on Windows (there is a setting to change that in options, but that's disabled on Windows). Therefore this fixes Safari/Win too. |
@niieani If possible: please can you also test on iOS and Android, at small through to large font sizes, for different font-families (especially serifs vs sans-serifs) and for dark-on-light and light-on-dark text color. Previous attempts to change antialiasing have not been without significant drawbacks so we need really thorough testing :) |
I've checked Safari/Mac and Chrome/Mac. |
@shichuan: Which one is before/after applying this? |
Thanks for the tests so far. Also need to check how this performs (scroll etc) on pages full of text on desktop and mobile. |
@niieani: all screenshots were taken after the change. |
@niieani: doesn't seem to have any difference before/after, even when zoom the text to the max. |
Anyone have a suggestion for resolving the same issue in Firefox on Windows? The -webkit-text-stroke style rule resolves in Webkit browsers, but obviously has no effect on FF. Still looks choppy. http://superwebdesignguy.com/dev/sprongo/splash.html |
I don't know why we're all seeing different results. Only Firefox 4 or 5 and IE 9 have native antialiasing on Windows! Chrome, Safari and Opera do not. Safari does have proprietary font smoothing built in, but its default is "Windows Standard", ie. it's not turned on when you first install it, you have to manually enable it. As discussed with Andy last night, this smoothing hack only really works on chunky bold headline fonts and looks awful on body copy. It effects both Chrome and Safari as Paul pointed out, unless of course you already have font smoothing turned on in Safari, then there is only a tiny difference that might not be noticable. I really dislike Safari's built in font smoothing as it makes type appear much bolder than it really is. It isn't using ClearType but some proprietary smoothing method instead but that's another discussion altogether. Andy, have you looked at your system settings, under Control Panels/Display/Adjust ClearType text to ensure that ClearType is in fact enabled system wide? Without that turned on the text won't be antialiased in Firefox. |
Here is my little test first with out this I used Google Chrome and Safari on windows 7 with In control panel i have this setting In firefox 5 text is working fine btw. |
@Fatbat I imagine my font smoothing is turned off. Not really comfortable relying on end users to turn on their font smoothing in order to see the font properly. Would be nice if this was possible to temporarily activate when viewing a certain page that called for it in a meta tag. |
Correction: Font smoothing is on by default in Win7 and Vista, not XP though. |
Just checked. ClearType is on and was on by default. Not sure why I am seeing the font display issue. |
The OP’s screenshot looks to me a lot more like incorrect ClearType calibration than text anti-aliasing being off (if you zoom in on the screenshot, you can see colour fringing which is a dead giveaway that something is trying to do sub-pixel AA). Try running ClearType Text Tuner and see if things improve after doing so. (Also note that a screenshot of sub-pixel AA that looks bad on your monitor might look fine on the original one.) |
More on this matter: Unfortuately the trick I found does not work anymore in the latest -dev version of Chrome (v14). |
There doesn't seem to be any good, safe method to have consistent antialiased fonts in most modern environments. I'd be on the side of closing this issue and leaving the default browser/OS font rendering in place. |
As I said earlier, all of the text is already anti-aliased. All that these hacks are doing is changing the text renderer so that it doesn’t perform sub-pixel AA. |
csnover, I don't think you are correct. Look again, carefully at the second text here: |
@niieani: Just because it appears to be wrong doesn’t mean no anti-aliasing is being applied. Zoom in 400% and you see this: http://i.imgur.com/6em4w.png. Perhaps the AA mode is incorrect, but it is at least attempting anti-aliasing. It would probably be more illuminating to look at the same text in a browser that is performing sub-pixel AA “correctly” to see what the rendering differences are, and see if other Chrome users experience the same problem on a test case (scanning this ticket I don’t see any test case posted, just screenshots). |
Cleartype looks like crap on large text, it looks the same in IE8 as in Chrome. Check this out in IE8 and Chrome: http://jsfiddle.net/RA2Mu/1/ . Edit: To clarify, IE9, Firefox and Safari on Windows all use different font rendering. |
@csnover: OK, maybe you're right, but then why does IE9 and Firefox antialias "correctly" (whatever that is, to me at least, it means no visible rough edges on fonts) and Chrome doesn't. I can confirm that other Chrome users using Windows experience the same problem, because it's a huge issue all over the net (take the example of the article cited above or this topic on Google Chrome help forum - look at the related discussions on the right too). |
Cleartype is perfectly fine in IE9 but looks as rough as Chrome in IE8. There IS subpixel anti aliasing going on in Chrome and IE8; when viewed on a white background there are red and blue pixels fringing the letters but it's just not as strongly applied as it is in Firefox and IE9. |
I guess the matter is that there is subpixel antialiasing going on in Chrome on Windows, but without simple font smoothing (rounding corners) beforehand. What we need to figure out is how to enable/apply font smoothing in Chrome. |
We have a history of fighting against text rendering and losing: 0cec104 <= revert I'm interested in seeing someone write this up with plenty of example screenshots, demonstrating the differences across browser/os/smoothing enabled combos. ... And what the techniques are for addressing those differences. It's a hairy situation. But until someone does substantial and comprehensive research on this, I'm not ready to land any changes. Also, since I work for Chrome, I should remind you that if you want Chrome to act differently, you should try filing a ticket. You can do that at http://new.crbug.com :) Thanks |
Hi guys,
For some reason only Chrome doesn't antialias fonts by default.
The fix is to add:
Here's an example, on the top antialiasing enabled, below default rendering.
![Example](https://camo.githubusercontent.com/8dfba440e9820f5393ecafdd53aed88ce96db56b1e1dd9a0c1867f5d1e5f2a64/687474703a2f2f646c2e64726f70626f782e636f6d2f752f3131343437342f666f6e742d736d6f6f7468696e672d6368726f6d652d322e504e47)
http://dl.dropbox.com/u/114474/font-smoothing-chrome-2.PNG (unfortunately github forces a resize for the picture, so here's the direct link)
Note the 'S' and 'O' - default rendering makes it look horrible.
Applying this matches the behaviour of Firefox, IE and Safari (they antialias by default).
What do you think, should we add this fix? I apply it to all my sites manually.
The text was updated successfully, but these errors were encountered: