4 ms·
Why isn't this SVG? Font icons are only applicable when there is actually an appropriate corresponding Unicode character for the icon, as text is supposed to be
by Sephr 14y ago
Why isn't this SVG? Font icons are only applicable when there is actually an appropriate corresponding Unicode character for the icon, as text is supposed to be selectable/copyable, and display fine (albeit in a different typeface) if I turn off web fonts and have full Unicode coverage. Some of the icons that Github implements are in Unicode, yet they don't even use the characters for those.
For an example of when it's appropriate to use a custom font for an icon, I use a custom font for U+1F50D Left-Pointing Magnifying Glass in the search button on my website. Github uses U+F22E [INVALID] instead for their search icon.
- crazygringo 14y agohttp://en.wikipedia.org/wiki/Svg#Support_for_SVG_in_web_browsers http://en.wikipedia.org/wiki/Svg#Support_for_SVG_in_web_brow...
- petercooper 14y agoEvery major current generation browser and last generation browser supports SVG images except IE 8. So IE 8 users just wouldn't see the icons - not a big loss since I suspect IE 8 users make up a tiny amount of the user base.
- dudus 14y agoThere are pollyfils to degrade SVG into VML or een flash for ie8, ie7 and ie6. https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Brow... I don't mean that it's pretty. I'm just saying that it's possible
- masklinn 14y ago> Why isn't this SVG? SVG is a terrible technology with absolutely no support for scaling to small sizes (no hinting).