Skip to main content

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.scss based on current files in assets/fonts/Roboto/

Output

  • assets/fonts/<Family>/: TTF/OTF/TTC and WOFF/WOFF2 files, plus OFL.txt
  • assets/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_TOKEN environment 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

fontdownloader-0.2.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fontdownloader-0.2.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file fontdownloader-0.2.1.tar.gz.

File metadata

  • Download URL: fontdownloader-0.2.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fontdownloader-0.2.1.tar.gz
Algorithm Hash digest
SHA256 82d696907a97905925be7520acab8be780af3b791b63d58130b4cc946b1e567a
MD5 8a638c5aa66df1a971507e0e673fcbd3
BLAKE2b-256 4d63792e992165af8c2f2e6efa9bf3640d78ecb05a19597f2f732d485f799454

See more details on using hashes here.

File details

Details for the file fontdownloader-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: fontdownloader-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fontdownloader-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 808ecf919b31b9e6076d0dd65caec9d2a8d9a509e0e4864ef926ec3dcdc7350c
MD5 090dea22cbe90a4572b9b3282886c441
BLAKE2b-256 95fb62ec66c29bce6e51f1b4c433a2d56d516626ccbda517c5f33644691094b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page