albertodonato / get-css-fonts

Create a fonts CSS file with local resources from a Google fonts URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get-css-fonts - Get local fonts from a CSS URL

Simple script to download a fonts CSS (typically from a Google fonts URL) and all font resources declared in it.

The resulting CSS will have font url()s updated to match the local path.

For example,

./get-css-fonts 'http://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400'

will create a fonts.css files with font URLs pointing to a local fonts/ directory, where all font files are downloaded.

About

Create a fonts CSS file with local resources from a Google fonts URL

License:GNU General Public License v3.0


Languages

Language:Python 100.0%