Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Icon Fonts FTW

Icon Fonts FTW

An overview of icon fonts with tips and tools for creating and using them. A lightning talk presentation for Geekfest, Tuesday, April 2, 2013.

Mike Aparicio

April 02, 2013
Tweet

More Decks by Mike Aparicio

Other Decks in Technology

Transcript

  1. Why Sprites Suck •Difficult to maintain •One giant file; may

    contain unnecessary icons •Icons look like ass on high pixel density displays (Retina) •Browsers don’t print background images by default
  2. GROUPON SPRITE INVENTORY common.png 61k places-profile-icons.png 2k checkout.png 39k heartx.png

    5k map-pointers.png 2k personalization.png 8k share-sprite.png 2k bg-refer_cta_sprite.png 1k star-rating.gif 2k gift-wizard-calendar-icon.png 1k
  3. GROUPON SPRITE INVENTORY •Different sizes, colors, opacity •Mix of flat,

    gradients, shadows •Different icons representing similar concepts •Janky, outdated social icons •No visual cohesion •Pixelated when zoomed in
  4. Making an Icon Font •Select icons from libraries and/or import

    your own SVGs •Edit tags to name your icon •Select Private Use Area encoding for best results, accessibility •Base64 encode icons in CSS if you’re really hard core •Name your font •Save your font to JSON •Download your font
  5. Making an Icon Font • style.css (5k) • lte-ie7.js (2k)

    • fonts/icon-font-demo.eot (11k) • fonts/icon-font-demo.svg (43k) • fonts/icon-font-demo.ttf (11k) • fonts/icon-font-demo.woff (6k) • index.html 56 icons
  6. • The Era of Symbol Fonts http://alistapart.com/article/the-era-of-symbol-fonts • HTML for

    Icon Font Usage http://css-tricks.com/html-for-icon-font-usage/ • The Big List of Flat Icons & Icon Fonts http://css-tricks.com/flat-icons-icon-fonts/ • 5 Use Cases for Icon Fonts http://css-tricks.com/five-use-cases-for-icon-fonts/ • Four Custom Icon Font Generators Compared http://designshack.net/articles/css/four-custom-icon-font-generators-compared/ Further Reading