Convert fonts from the command line
I've found myself converting font's at the beginning of most projects. I'll always convert one .ttf into one of .eot, .woff, or .svg. I decided this process should be automated:
$ gem install convert_font
Then:
convert_font convert -i /home/myproject/my_font_file.ttf -f eot,woff,svg
-i
Is the absolute path to your font file.
-f
Is a comma separated list of the file types you would like.
Your fonts will be dropped into your current working directory.
See the README for advanced usage.
(Disclaimer) Please only convert fonts you have the permission to do so with.
Written by Jon Lunsford
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#