Have you ever thought of automating the process of converting regular fonts to webfonts?
Just for you I build a simple command line client for the popular Font Squirrel font-face generator. I called it Marmot, and here’s what it can do:
Marmot takes any font, uploads it to Font Squirrel and downloads a zip file with woff, ttf, eot and svg versions of the font. By default, Marmot uses default settings for the generator.
But usually, when you download a fontface kit from Font Squirrel there’s a file called
generator-config.txt, and the cool thing is, Marmot can read it:
Wow, that’s awesome, how do I install it?
Marmot is written in ruby, it’s a simple gem:
How do I configure this thing?
You can either use config files I was telling you before:
Or you can pass parameters as arguments:
There are lots of parameters, and their names are somewhat confusing. To make it a bit easier, here is what you can do: go to the generator page, open the console and run this code:
Here’s what you gonna get:
So, I hope you like it. Go star Marmot on Github.