kyc8lw
Last Updated: February 25, 2016
·
1.448K
· jonlunsford

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.