Over the past few years, icon fonts have grown in popularity and have been widely used on many websites as an alternative to more traditional approach of bitmap images (e.g. png, jpg).
There are many advantages of using icon fonts over bitmaps, but the most important difference is in the file size (vector icons are much smaller than bitmap images), scalability (icons can be scaled to any dimensions without loosing image quality) and they can be easily customized (for example. you can easily change the color of a vector icon) or even animated! Adding vector icons to your website is easier than ever and one of the best ways to use them is through a custom webfont. Let’s take a closer look what icon fonts are and how to create your own webfont in no time.
But first things first – what is an icon font and what are some of the advantages of using it on your website? Icon fonts are very much just regular fonts (as any other webfonts used on the web – e.g. Roboto, or Open Sans), but instead of letters and numbers, they contain symbols and icons. As soon as you include your font on your website, each icon can be then very easily used in HTML or referenced in CSS.
Here are some advantages to organizing your vector icons into an icon font:
Using Webfont app for Mac
Export your existing icons into SVG files and open Webfont app. Create a new project in the app and drag & drop exported SVG files.
Filenames of your original SVG files are going to be used as your custom icon CSS classnames when you export your font. If you wish to make and changes, customize each icon in the Settings section.
Navigate to the Export section and generate your icon font. Downloaded file will include your font available in the most common webfont formats as well as simple usage instructions for your website or blog.
Enjoy!