@imhoff/google-fonts-downloader
v0.2.0
Published
Specify a Google Fonts Stylesheet URL and get a directory of font assets.
Downloads
5
Readme
@imhoff/google-fonts-downloader
Download Google fonts by providing the URL. Useful if you want to host your fonts on your own server.
This tool creates a directory with the downloaded fonts and then generates a font face file for you in either CSS or Vanilla Extract format.
Usage
npx @imhoff/google-fonts-downloader --help
npx @imhoff/google-fonts-downloader <url> [options]
Example
npx @imhoff/google-fonts-downloader \
"https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" \
--output vanilla-extract \
--url-prefix "/public/fonts/"