Re:Show HN: Littlebox, a pure CSS icon library – worth conti...
by Apofis on Friday February 13, 2015 @06:04PM
(#9047782)
So, the million dollar question: is it faster to use these, images/sprites, icon fonts? The trade-off I'm assuming is download/load speed vs. cpu load?
[ Parent
| on HN ]
Re:Show HN: Littlebox, a pure CSS icon library – worth conti...
by coderdude on Friday February 13, 2015 @06:33PM
(#9047890)
Don't forget about compatibility. You can be reasonably sure that font icons will display the same everywhere. CSS-based icons are all over the map compatibility-wise (display issues across browsers).
Re:Show HN: Littlebox, a pure CSS icon library – worth conti...
by gdix on Friday February 13, 2015 @07:22PM
(#9048089)
Sure, but font icons can only be one color. Can you give an example of a compatibility issue?
Re:Show HN: Littlebox, a pure CSS icon library – worth conti...
by coderdude on Friday February 13, 2015 @07:51PM
(#9048210)
Font Awesome allows stacking:
http://blog.fontawesome.io/2014/09/25/custom-file-types-with...
Here's their demo but with some color added: http://codepen.io/anon/pen/VYQMea
But yeah, you're typically stuck with one color. Here's a demo that shows off multi-color fonts (Firefox only): http://pixelambacht.nl/2014/compyx-a-multicolor-8bit-font/
That technique could be used to make multi-color font icons if it were cross-browser compatible. Maybe one day. But I think SVG icons are where things are headed.
As for compatibility issues, there's one listed on this page: https://news.ycombinator.com/item?id=9047846