Custom glyph fonts with Font Custom and Compass
If you like to build your own fonts from vector graphics using Font Custom, you'd probably love it integrated with Compass.
Well, i have you covered: compass-fontcustom.
To have your font and css classes automatically generated:
@import "myfont/*.svg";
@include all-myfont-glyphs;
You're right. Works like sprites.
Given the myfont
folder contains a file named glyph.svg
you will have a css class available named .icon-myfont-glyph
.
Written by glaszig
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#