Mobile app version of vmapp.org
Login or Join
Jennifer507

: 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

@Jennifer507

Posted in: #Compatibility #CrossBrowser #Fonts

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)?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Jennifer507

3 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

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!

10% popularity Vote Up Vote Down


 

@Lengel546

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/

10% popularity Vote Up Vote Down


 

@Marchetta884

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme