3 ms·
As someone who knows nothing about this: what is wrong with icon fonts?
by bobbylarrybobby 4y ago
As someone who knows nothing about this: what is wrong with icon fonts?
- iampims 4y agoIt’s a font, so it has to be loaded. SVGs can be inlined, so no additional, and possibly external, requests needed.
- ayushnix 4y agoThis is how some websites with icon fonts look when web fonts are disabled https://0x0.st/oOUq.png https://0x0.st/oOUq.png (nullprogram.com) https://0x0.st/oOUb.png https://0x0.st/oOUb.png (https://developer.android.com/training/basics/firstapp https://developer.android.com/training/basics/firstapp) As someone has already pointed out, unlike web fonts, SVGs can be used as inline resources. It's not just icon fonts though, using web fonts themselves can lead to bad design practices. https://microblog.ayushnix.com/font-weight-insanity/ https://microblog.ayushnix.com/font-weight-insanity/
- megous 4y agoFont choice is a user's choice. https://megous.com/dl/tmp/830725ae5a555c87.png https://megous.com/dl/tmp/830725ae5a555c87.png It's a normal user modifiable choice in the browser. You're just making your webapp much less usable for users who have made that choice. And for no reason, because SVG icons work just fine and are even more flexible. Font icons are basically a hack. They have terrible fallback behavior.