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.4.tar.gz (15.6 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.4-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fontdownloader-0.1.4.tar.gz
  • Upload date:
  • Size: 15.6 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.4.tar.gz
Algorithm Hash digest
SHA256 7f46b9f7883e112bc6be74d3b40cf4de20930e11cd12712888b3c9af9f4c4414
MD5 c633c4be3d6336b07692b9ab969f6da6
BLAKE2b-256 3a4d7240a2454c4847fc24e662cbc5a70aa9841a0d6d19edfac812a8bae1f6d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fontdownloader-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 46dbf63f52467cf9592da2585c6a09bfd367010a996381085a08f9c1fda666eb
MD5 5fe3ca226380655e92c13e9a16822bdb
BLAKE2b-256 6929683e26dbc736e9f18416d95d34145621ab061857c2033dce1d93e578ff18

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