Re:Icons of all main payment operators and methods
by Messiah_ on Friday April 24, 2015 @10:57AM
(#9433749)
What is the advantage of using this over pngs?
[ Parent
| on HN ]
Re:Icons of all main payment operators and methods
by Brajeshwar on Friday April 24, 2015 @11:42AM
(#9434081)
PNG is raster and so they do not scale on various sizes (various devices and their screen-sizes), not to mention of the retina display that one needs to take care.
SVGs and/or Icon fonts are vector and scalable.
Re:Icons of all main payment operators and methods
by phragg on Friday April 24, 2015 @05:08PM
(#9436027)
One extremely useful benefit is that you can change the text-size, color, etc just as you would with CSS on these fonts.
Re:Icons of all main payment operators and methods
by bdat on Friday April 24, 2015 @11:28AM
(#9433991)
They will scale well with high ppi screens.
Re:Icons of all main payment operators and methods
by loopbit on Friday April 24, 2015 @11:44AM
(#9434096)
To be honest, the same can be said for svg images without the need to load a css file (4KB minified) plus a font file (55-230KB).
Specially taking into account that most places will use only a few of these icons.
Re:Icons of all main payment operators and methods
by bdat on Friday April 24, 2015 @12:56PM
(#9434528)
I was only explaining the advantage over png. Great point about the use-case though. The average site is probably not going to offer 95 payment options/operators; a specialized svg library might be more appropriate.
Re:Icons of all main payment operators and methods
by subsection1h on Friday April 24, 2015 @01:15PM
(#9434657)
An icon font generator/subsetting tool can produce a font file that includes only the icons that are needed.