October 28, 2014 | 3min read
Icon Fonts: Welcome to the Post-Pixel World
Two weeks ago Magda explained how to minimize your cutting time by using Photoshop Generator. Today I will show you how to avoid cutting altogether by replacing raster assets with fonts. This tutorial requires a basic level of Adobe Illustrator.
When skeuomorphism has gone with the wind and flat design is becoming more and more popular, we don’t use many gradients and/or drop shadows in interfaces. If we compare simple icons and letters, we can see they have a similar structure.
When icons are simple, solid shapes, we can successfully replace raster assets (like *.png files) with vectors… and that’s the point: fonts are vectors!
Many web designers use Font Awesome (which is a great collection of 479 icons) in their web projects, and it’s working really well because they’re rendered flawless on any screen density and all parameters like size, position, color and so on are easily editable (and we don’t have to prepare a new asset every time we want to e.g. change its color). I’ve been using Font Awesome in several web projects, but I never realized that I could use it in an app (big kudos to Tomek for this hint!).
First of all we’ll need Adobe Illustrator to prepare vector shapes in proper way. Next we will combine all these shapes into a font.
There are plenty of great tools for creating/editing fonts like Fontlab or Glyphs, but to build an icon set we don’t need such professional software (with setting alternates, ligatures etc). I found an easy, adequate web based tool called Fontello.
Draw or import vector icons to Adobe Illustrator; make sure they’re solid, merged shapes.
It’s easy to check: select an item and make sure it’s completely black. If it’s not, use the pathfinder tool (Window > Pathfinder) to merge all shapes together.
If there are some normal lines (with parameters like weight or cap style) in icons, we should outline them to make solid shapes (Object > Path > Outline Stroke).
Now we should distribute all shapes on separate artboards (make sure all artboards are even and all icons are properly aligned).
When we’re done, we can export all artboards to separate *.svg files (checkbox “use artboards” should be checked). Leave the standard SVG Options the way they are. It’s helpful to save them in a separate folder.
Open fontello and drag each icon into the Custom Icons area.
Select appropriate icons.
You can customize the icons’ names, but it’s not necessary.
Go to “Customize Codes” and take a screenshot of the icons with their unicodes - this will be helpful during the implementation. You can also change the unicodes if you need to.
Type in the font name, click “Download webfont” and that’s it: you have your own custom font!
If you’re working in Illustrator on wireframes or final designs, you can use your custom font there. After font instalation all characters will be easily available via the glyphs preview (Type > Glyphs).
You might also like
December 17, 2018
Polimag—How to Enhance Creativity through Digital Detox and Print
We have just published Polimag—a printed magazine, dedicated to our Clients! Dive in!
September 08, 2020
How to Know a Business Idea is a Good Idea
You have a business idea? We'll tell you how you can verify it with a few simple workshop exercises.