|
|
|
|
|
by jonathanmoore
5373 days ago
|
|
I have been using this method for nearly a year on various projects and theme designs. The font icon method is incredibly useful when you want to give user the flexibility to change up the color of the icons. Plus, as mentioned using CSS pseudo elements with content should not effect modern screen readers. One of the disadvantages mentioned in the article is the file size, but it can be drastically optimized. My favorite icon font is Pictos by Drew Wilson (http://pictos.drewwilson.com/). When I use it in a site design I will actually recreate the font file with just the few icons I need, usually 6-8 characters. To reduce the font file size just load up the icon font in Font Squirrel's font-face generator (http://www.fontsquirrel.com/fontface/generator) and use custom subsetting to specify the needed characters. Full Pictos Font
EOT (19 KB), WOFF (13 KB), TTF (18 KB), SVG (41 KB)
Total - 91 KB Optimized Pictos Font (8 characters/icons required)
EOT (6 KB), WOFF (4 KB), TTF (5 KB), SVG (5 KB)
Total - 20 KB |
|