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.0.tar.gz (16.2 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.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fontdownloader-0.2.0.tar.gz
  • Upload date:
  • Size: 16.2 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.0.tar.gz
Algorithm Hash digest
SHA256 0817db032b0f784b26a39ab213b794a361fde7e64915d653463097fd6197a918
MD5 864cfad597ced2a1714f02e9c639d85c
BLAKE2b-256 16abfd436cb900c5f0a620038342e6254e1d28dbba7b6efb82edfacb996f1d6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fontdownloader-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9c48e050481bb28570c4a0f2b3a101fe8df971ae7a56886edd9b7f316a698dc
MD5 24ba89543b367a63d28259e212c9821f
BLAKE2b-256 6e8446abf5985aba600903185de5c963eb96f5eebcfa2961fc6e50dd2ae023e6

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