: Are there concrete benefits in using png over fonts for icons? I recently noticed some major website (like this one) do not use font-awesome or similar projects to display their icons. Rather
I recently noticed some major website (like this one) do not use font-awesome or similar projects to display their icons. Rather they use PNGs.
Any rationale for this? Does it make any difference in terms of compatibility?
Would it make sense to no longer use font-awesome as a font and convert the icons to PNG/SVG (e.g. using github.com/encharm/Font-Awesome-SVG-PNG)?
More posts by @Jennifer507
3 Comments
Sorted by latest first Latest Oldest Best
I don't see why one should start using png in 2015. I'd rather say major websites are usually not the first ones to go for new technologies, simply because they have large codebases!
I'd say png, even in sprite form is not a good option anymore. Because you need different sizes for different display sizes. Vector format, wheter svg or font implementations make your life so easier as you know same graphics can be shown on any device sizes sharp and crisp!
png can be merged (all your site's png in one big png) to optimise the size. there is tool like compass (http://compass-style.org/) who automatize this functionnality. Then images are called with image position to display desired image on desired style.
For exemple i used 600ko icons, and when it is merged it does 111ko, and if you use browser cache, only one item need to be cached for the whole site.
example: compass-style.org/help/tutorials/spriting/
One major advantage of using PNGs is showing icons with more than one color. Also it's well supported by older browsers, althrough the IE 6 will have problems with transparent PNGs.
You might want to check font icons vs png icons on StackOverflow for a good comparison.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.