CLI to download Google Fonts (TTF/OTF/TTC + WOFF), OFL license, and SCSS
Project description
Font Downloader
A CLI to find and download Google Fonts. It consolidates TTF/OTF/TTC from the family ZIP or the google/fonts repo, adds all available WOFF/WOFF2 weights via the CSS2 API, writes OFL.txt, and generates an SCSS snippet.
Installation
From PyPI (recommended):
pip install fontdownloader
From source (development):
pip install -e .[dev]
Commands
Search
fontdownloader search "Roboto"
Download one or more families (consolidated)
# Single
fontdownloader download "Roboto" --force
# Multiple
fontdownloader download "Inter" "Roboto" "Lora"
# From file (one name per line)
fontdownloader download --file fonts.txt
- Downloads TTF/OTF/TTC + OFL.txt (ZIP first, repo fallback)
- Adds all WOFF/WOFF2 weights (100–900, normal/italic) via CSS2
- Writes SCSS to
assets/scss/<Family>.scss - Outputs files under
assets/fonts/<Family>/
Generate SCSS only
fontdownloader generate-scss "Roboto"
- Regenerates
assets/scss/Roboto.scssbased on current files inassets/fonts/Roboto/
Output
assets/fonts/<Family>/: TTF/OTF/TTC and WOFF/WOFF2 files, plusOFL.txtassets/scss/<Family>.scss: @font-face rules for downloaded variants
Notes
- No API key required. If the ZIP is blocked, the tool falls back to the google/fonts GitHub repo for TTF/OTF/TTC.
- Optional: set a
GITHUB_TOKENenvironment variable to raise GitHub API rate limits. - The
assets/directory is ignored by git by default.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fontdownloader-0.1.5.tar.gz.
File metadata
- Download URL: fontdownloader-0.1.5.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6438ce7c54b90f5dc99b47dcfb9c2a3eff5c21b9081581b1d517304ed2cc31
|
|
| MD5 |
989e28065d40e96f418bf2fa4dc6dea5
|
|
| BLAKE2b-256 |
78715b99112fdbfbf10ec9f440f4f8eb903ab727112a243469e7ff86d4033a22
|
File details
Details for the file fontdownloader-0.1.5-py3-none-any.whl.
File metadata
- Download URL: fontdownloader-0.1.5-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
644aa2c4e3b6db788da575ca510b5bd27374045a6863172ba255e7ba69984ab8
|
|
| MD5 |
58ba92279188d7dd6d2c611e27ab3b51
|
|
| BLAKE2b-256 |
03de2f8e8fa54ed1b4ab4cecb09ddaaff9b3484c7eca3271c67ef65a91cb5cd4
|