A hassle-free way to self-host Google Fonts
open sourceMITself-hostablefree
google-webfonts-helper (gwfh) lets you host Google Fonts on your own server instead of loading them from Google. Pick a font, its styles and character sets, and it gives you the CSS snippet and a zip of the font files in .woff2, .woff, .ttf, .svg and .eot. A free hosted instance runs at gwfh.mranftl.com with a public JSON API for listing fonts and downloading zips, and you can run your own from a prebuilt Docker image with your own Google Fonts API key.
Problems it solves
- self-host Google Fonts so my site doesn't send visitors' IPs to Google
- download Google Fonts as woff2 and woff files with the CSS @font-face rules
- get only the font weights and character subsets my site needs
- a JSON API to list Google Fonts and download them as a zip
- load web fonts from my own server for GDPR compliance
Features
- choose font styles and character sets
- generates @font-face CSS snippets
- downloads .woff2, .woff, .ttf, .svg and .eot in a zip
- public JSON API
- prebuilt Docker image for your own server
Limitations
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what google-webfonts-helper does.
- Google Fonts Free, open source fonts and a web font API
