Skip to main content

fontpkg

Fonts as ordinary Python project dependencies. Inspired by Fontsource.

uv add fontpkg fontpkg-inter
import fontpkg

font_path = fontpkg.path("inter")                 # Path to 400/normal
fontpkg.path("Inter", weight=700, style="italic") # names are case/space-insensitive
fontpkg.path("Inter", weight=650, nearest=True)

fam = fontpkg.family("Inter")    # .weights, .styles, .axes, .is_variable, .license
fontpkg.families()               # everything installed in the environment

Find installable families with fontpkg search <query> (matches family, slug, or category; the only CLI command that touches the network) or fontpkg list for what is already installed.

Integrations (extras fontpkg[pil], fontpkg[matplotlib]):

from fontpkg.pil import truetype
img_font = truetype("Roboto", size=24, weight=500)   # sets VF weight axis for you

from fontpkg.mpl import use
prop = use("Roboto", set_default=True)

Font packages are generated from google/fonts (OFL/Apache-licensed families only) — see the repository root for the generator.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fontpkg-0.2.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

fontpkg-0.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fontpkg-0.2.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fontpkg-0.2.0.tar.gz
Algorithm Hash digest
SHA256 20467a850f12012083f6b33dfc1901af2a89fee509f7b6a9ab8c774c072ba202
MD5 62daf41695bdc6ba8ae86c4221708822
BLAKE2b-256 526845525a139a342cbc6adc1e4b1f38cb50329d5b6b14a649121fa031d3c783

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fontpkg-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fontpkg-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c74b922c01d4d5a2e83d702845468bc7be18336946a2a7b3b28a5666397e9e3
MD5 c78ef6bfa9c86e7164b9fb2e66742691
BLAKE2b-256 c168c4681474c60b038ceda1becd082f2f09ff2fe6ce3a14c6087079b4d628b3

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 Sentry Error logging StatusPage Status page