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.1.2.tar.gz (11.7 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.1.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fontdownloader-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dd076c8471cc00877e75cf80acad138678e371857e4a5621c2e09bb0b1f2dda0
MD5 4677d7c90b67b7e0a15a025af681d1c6
BLAKE2b-256 35d800cafe73f03e579198eff166f4ec57cb75f1b70d91e9d8a6b94e15ed0f53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fontdownloader-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd1f37721099ec0ba878a5512186a9b1d3026b140819d42ec9ad06cf538ce7bb
MD5 8a7012c9088a657eb45aa5a7a9344f8c
BLAKE2b-256 d11a6e75dfb4503c13ea3b343cb323ee8660d1564172fdcb072065e34baee5b2

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