TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why using Fonts as Icons can prove tricky: Subpixel Aliasing and Webkit

42 pointsby destraynorabout 13 years ago

4 comments

dhotsonabout 13 years ago
Icon designers have been saying this for years.<p>For small icons, you really want to tune every pixel. Vector sounds great in theory (infinitely scalable!) but it just ends up being a blurry mess at small sizes.
mistercowabout 13 years ago
&#62;The above test is using Modern Pictograms and Safari. subpixel-antialiased is too blurry, antialiased is too thin. If anyone can find a goldilocks solution that would be great.<p>Render the whole shebang twice (including the background), once with "subpixel-antialiased", and once with either "antialiased" or "none". The latter should be in a div in front of and aligned with the subpixel version, and with an `opacity` value of your choosing, probably somewhere around 80%.<p><i>Edit:</i> Maybe closer to 60%.
masklinnabout 13 years ago
Actual second part of the title: subpixel anti-aliasing and some webkits on some platforms depending on the underlying text renderer.
tomkinabout 13 years ago
I am trying hard to see the point of this article. Is he suggesting that we stop using fonts as icons for buttons and menus? Or assuming that if we did use them, we wouldn't have the good sense to ensure they look essentially the same across the board? If your argument is "they don't look good at X size": don't use them at that size. And don't bother using sprites, either because the milage will vary greatly. If your argument is "they have a huge kb footprint": don't use web fonts that suck.<p>For every negative (so far, just one or two) point against @font-face, I can find 2 or 3 positive, more important points. Creating time-wasting sprites with multiple colors and then a giant section in my stylesheet aligning all of these "icons" is bullshit compared to the simplicity of @font-face.<p>If this anti-@font-face banter is by purists, you don't really understand what a <i>purist</i> is, or your definition is wildly obsolete.
评论 #3676476 未加载