Reputation: 5939
Is it possible to render icons (web safe, if they exist) to show an icon on a page without relying on specific fonts?
for example, if you have fontawesome font this will render an icon
a:before {
font-family: FontAwesome;
content: "\f095";
}
So, my question is, is there a font type that is websafe which I can replace \f095
code?
Upvotes: 1
Views: 696
Reputation: 743
If you can get the SVG's you need, you can create your own websafe icon font with https://icomoon.io/app/, or http://fontastic.me/, or http://fontello.com/, etc. Be sure to use Private Use Area (PUA) codes for the icons when exporting the font.
Upvotes: 2
Reputation: 46
You can try to use the Unicode Icons as an alternative. Just need to find out the HTML-Code for your specific Icon. Here is an example for the telephone Icon:
<p>☏</p>
Here is a link to a site which shows you the HTML-Code for each Unicode Icon:
Upvotes: 3