Stars
Forks
Watchers
Developer links
Google Webfonts Helper
Self-hosting a Google font takes four steps in Google Webfonts Helper: pick a family, choose charsets and styles, copy the @font-face CSS, and download the files. The family list can be filtered by typing part of a name or category and ordered by family, category, popularity, last modified date, number of styles, or number of charsets. Each family page shows its styles and charsets beside an editable live preview with adjustable size, and ticking charsets and styles decides which files are generated. CSS comes in three modes: Modern Browsers with WOFF2 only, Legacy Support adding TrueType, and Historic Support adding EOT, WOFF, and SVG. A folder prefix field rewrites every url() to match where the files will live, and each rule sets font-display: swap. A zip download bundles the files in the selected mode's formats, named after the family, version, and charsets. A public JSON API lists families, returns font file URLs, and serves zips filtered by subsets, variants, and formats. Serving the files from your own domain keeps font requests off Google's servers, which helps sites with strict privacy requirements. To run the helper yourself, start one Docker container with a Google Fonts API key and publish port 8080; the image runs rootless. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Keep Font Requests Off Google
- Files and CSS are served from your own domain, so visitors' browsers send no font requests to Google's servers, which supports strict privacy requirements and removes a third-party dependency.
- Ship Only The Files You Need
- Pick exact charsets and styles, such as latin plus latin-ext in regular, italic, and 700, so the zip contains only those files instead of an entire family.
- Cover Old And New Browsers
- Three CSS modes generate WOFF2-only rules for current browsers, WOFF2 plus TrueType for older ones, and EOT, WOFF, and SVG sources for very old browsers, with matching zip contents.
- Automate Or Run Your Own Copy
- A public JSON API serves family data and filtered zips for scripts, and a Docker container with a Google Fonts API key runs a private instance on port 8080.
Features
- Searchable Font Catalogue
- Filter the family list by name or category and order it by family, category, popularity, last modified date, number of styles, or number of charsets, ascending or descending.
- Live Style Preview
- Every style of a family is rendered in the real typeface with editable sample text and an adjustable preview size, beside its charsets and last-modified date.
- Three CSS Support Modes
- Modern Browsers emits WOFF2 only, Legacy Support adds TrueType, and Historic Support adds EOT, WOFF, and SVG; every rule sets font-display: swap and honors a customizable folder prefix.
- Zip Download Per Selection
- Download one zip holding the chosen charsets and styles in the selected mode's formats, named after the family, version, and charsets, ready to place beside the stylesheet.
- Public JSON API
- Endpoints list every family, return one family's file URLs, and serve zips filtered by subsets, variants, and formats, so build scripts can fetch exactly what a site needs.
- Rootless Docker Image
- A prebuilt image on GitHub Packages runs rootless on a minimal base with linux/arm64 support, and needs a GOOGLE_FONTS_API_KEY variable and port 8080 published.