fontpkg
Fonts as ordinary Python project dependencies. Inspired by Fontsource.
Browse the fonts at fontpkg.org →
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.
Metadata
Release files for fontpkg 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fontpkg-0.2.2.tar.gz | 9.0 kB | Without provenance | Details for fontpkg-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fontpkg-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for fontpkg-0.2.2-py3-none-any.whl |
Total release size: 17.8 kB
Release files / fontpkg-0.2.2.tar.gz
| Download URL | fontpkg-0.2.2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feca3d345f1f3c700a0c86de52b5d1de6f41cc703ae92fa5428ebc88c3246bba
|
|
BLAKE2b-256 checksum How to use checksums |
6a6f5842ce5789ac3486d3cd1b52ab32bcd34f2da478bbae6fe3bc18dbd39856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| 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}
|
Release files / fontpkg-0.2.2-py3-none-any.whl
| Download URL | fontpkg-0.2.2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18891ee877139922f5be6ea421df630376fab2440b7dba2754652f7daf809dea
|
|
BLAKE2b-256 checksum How to use checksums |
539dee4223909fe6ed696b0cd528d63c7c4c1ae410fa91c59fb6c2c8ffc8f811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| 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}
|
Security for fontpkg 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.