How to use#
- Add font styles to your collection on fonts.google.com
- Copy the embed CSS URL:
What is does#
Downloads Google Fonts in .woff2
only and creates the exact same directory structure Google has on its static servers.
- Downloads a provided
.css
file from Google Fonts. - Detects all kind of info with a
regex
. - Copies the fonts requested from cache, or downloads them if new.
- Creates an optional
-b64.css
file with base64 fonts embedded inside the CSS. - Packages files in
css/xxxxxx.css
andfonts/id/version/xxxxx.woff2
. - Packages license files from the original Google repo into the
fonts/id/version/xxxxxx.txt
. - Creates a
.zip
for the requested package.