Ask HN: Custom Fonts & Anti-Aliasing
So I've got a question for everyone: what's with the current fascination with using imported fonts that (on certain OS's/browsers), don't have AA. I love good typography as much as the next geek, but is it really so important to have that flashy font that you used in Photoshop, if it looks rubbish on your site for a large number of users?
@Developers: What's your take on using these fonts against using normal ones?
@Designers: Would you rather have a font that's correct against initial design, or an anti-aliased one that isn't?
Examples: custora.com, locations on creativemornings.com, elated.com post titles. YMMV looking at these, based on what your OS/browser combo is.
29 comments
[ 2101 ms ] story [ 1448 ms ] threadThat said, I do notice that some custom web fonts look ugly on Windows due to the very crisp quality of the rendering engine, especially when Cleartype is enabled. Those fonts look a lot better on Linux and Mac browsers.
Therefore, whenever I choose to use a custom web font and know that my target audience includes Windows users I give more attention to selecting a proper font and testing how it renders on the page.
I encourage the use of embedded fonts over traditional techniques such as image replacement, because the text looks and behaves the same as it would in other applications on the user's computer.
(I'm a developer doing some design on the side)
IE9 promises to not do this anymore, and on high-density displays (the better smartphone ones) it is simply not needed.
So the problem is two-fold: a very distinctive look of Microsoft fonts, and a sub-optimal fallback for non-aggressively hinted fonts in Windows.
However, if one uses font-sizes that one can actually read (for instance, bigger then 12pt, thank you all very much) the pixel-per-character count gets big enough that the results start looking better -- especially as the user does not unconsciously move his nose to meet the display in person.
FontSquirrel's '@font-face Kits' execute this as perfectly as I've seen, and I can't find a scenario wherein their fonts look ugly.
The syntax from the kits at Font Squirrel are also what most other subscription/pay webfont use, so Font Squirrel fonts shouldn't necessarily be any different from Typekit fonts.
Most recent bulletproof syntax: http://www.fontspring.com/blog/further-hardening-of-the-bull...
Here is a sample image I've made comparing various font rendering engines. The "Windows" one is by far the worst, IMO, and that's Chrome: http://twitpic.com/1ynx3e .
Edit: I looked around on fontspring, and noticed that most of those fonts look OK on Windows/Chrome, though not as good as on Firefox with DirectWrite enabled. Does the way you embed the font affect how well it renders?
Also, I've noticed that many free fonts (like those available from Google) render poorly. Is this an artifact of them being poorly designed?
I recently redesigned my blog and that included updating the typography. I decided on DroidSerifRegular for the body text. It looks beautiful on a Mac but when I previewed it on IE/Windows, it looked absolutely horrible (the lowercase a, especially). So for IE I use Georgia.
My blog: http://techiferous.com
http://dl.dropbox.com/u/4129016/droidserif-ie7-vs-chrome.png
Also, it looks like the bottom of the "g"'s and possibly some other characters are getting cut off. It's fixed by adjusting the font-size.
Also you should notice a bug in Safari for OS X that turns off antialiasing: http://seanmcb.com/typekit/webkit-antialiasing-test.html
Google has free webfonts that are already prepared for including in different browsers, you may consider them: http://www.google.com/webfonts, also there is http://www.kernest.com/.
FontSquirrel was already mentioned in this thread.
Typekit shows browser samples that you can break down by OS as well. ie. http://typekit.com/fonts/adelle-web click on the 'Browser Samples' tab
Look what happens when you change the h1 on custora.com from 50px just up to 51px on Chrome [Win 7]: http://dl.dropbox.com/u/4129016/50-51.png (it looks a lot better)
May be chromium devs need a way to unitize ClearType when custom fonts are being used.
This makes a huge difference in Windows Chrome as it apparently causes the font to take a different rendering path.
Don't use text-rendering: optimizeLegibility; It ends up doing either nothing or making things look worse on some mobile webkit browsers.
It's an improvement over Cufon/Sifr generally and the one downside it does have (rendering under non-mac) will get better soon and I'll have to do zero work to benefit from that (theoretically).
Plus I saved a lot of time (and cost for the client) getting from design to live site quickly. It's a small price to pay, given that most ppl won't care that much, and those that do, a good proportion will understand what the issue is.
If a site is designed well then the small detail of the font AA is easily missed, ignored or forgiven as the site is a joy to use/view.
Quipsologies is a case in point. http://www.underconsideration.com/quipsologies/
The slight clipping of their sub-heads under chrome is overlooked given beautiful layout and clear delivery of information.