Script to download and host google web fonts and generate css: best-served-local

Local Google web font hosting made easy, controllable and automated

The bash script best-served-local makes downloading and self-hosting a Google web font as easy as running the following command in a terminal:

This will download the appropriate font files (like Roboto_Bold_v15_latin_700.woff) to a local temporary directory and display the following valid css3 in the terminal:

Specifying a few extra options fully automates your desired usage scenario:

Apart from bash version 4, this script only depends on curl (it’s not tested on OSX yet).

Getting and running the script

The script can be cloned or forked from its github repository, downloaded, or started straight from the web like showed above (although some would advise against that).

To display all commandline arguments, run the script with the --help (or -h) argument.

See the README file for detailed usage information.

Happy Google-free hosting!

Leave a Reply

Your email address will not be published. Required fields are marked *