A simple and reproducible way of using fonts in matplotlib
Project description
A simple and reproducible way of using fonts in matplotlib. In short, pyfonts:
- allows you to use all fonts from Google Font
- allows you to use all fonts from Bunny Font (GDPR-compliant alternative to Google Fonts)
- allows you to use any font from an arbitrary URL
- is efficient (thanks to its cache system)
Quick start
- Google Fonts
import matplotlib.pyplot as plt
from pyfonts import load_google_font
font = load_google_font("Fascinate Inline")
fig, ax = plt.subplots()
ax.text(x=0.2, y=0.5, s="Hey there!", size=30, font=font)
- Bunny Fonts
import matplotlib.pyplot as plt
from pyfonts import load_bunny_font
font = load_bunny_font("Barrio")
fig, ax = plt.subplots()
ax.text(x=0.2, y=0.5, s="Hey there!", size=30, font=font)
Installation
pip install pyfonts
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfonts-1.2.0.tar.gz.
File metadata
- Download URL: pyfonts-1.2.0.tar.gz
- Upload date:
- Size: 266.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42e70c6518cba702852d5814db50f5a05b77e2b6b1b7752aafcbe01d8facaada
|
|
| MD5 |
47bff10541fb52292d3c649ffd464917
|
|
| BLAKE2b-256 |
4a7f3f6a942980a20fc0658c5142eaa351e6800586e70e00791416501f6de58f
|
Provenance
The following attestation bundles were made for pyfonts-1.2.0.tar.gz:
Publisher:
pypi.yaml on y-sunflower/pyfonts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfonts-1.2.0.tar.gz -
Subject digest:
42e70c6518cba702852d5814db50f5a05b77e2b6b1b7752aafcbe01d8facaada - Sigstore transparency entry: 708573535
- Sigstore integration time:
-
Permalink:
y-sunflower/pyfonts@13496b84e3b415e3201edc5e3ee4daa69f5853e0 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/y-sunflower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@13496b84e3b415e3201edc5e3ee4daa69f5853e0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyfonts-1.2.0-py3-none-any.whl.
File metadata
- Download URL: pyfonts-1.2.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2629f9065ad2edbce215f4011c25a9f74d4a67f18be34d8a873b722c41eeb51e
|
|
| MD5 |
e0ff3b0d4459408b7647b8bae057123e
|
|
| BLAKE2b-256 |
81499a2ffc68c9d1d8796a887ef48a7037502dbf04f266e808944f29a7539e3b
|
Provenance
The following attestation bundles were made for pyfonts-1.2.0-py3-none-any.whl:
Publisher:
pypi.yaml on y-sunflower/pyfonts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfonts-1.2.0-py3-none-any.whl -
Subject digest:
2629f9065ad2edbce215f4011c25a9f74d4a67f18be34d8a873b722c41eeb51e - Sigstore transparency entry: 708573538
- Sigstore integration time:
-
Permalink:
y-sunflower/pyfonts@13496b84e3b415e3201edc5e3ee4daa69f5853e0 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/y-sunflower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@13496b84e3b415e3201edc5e3ee4daa69f5853e0 -
Trigger Event:
push
-
Statement type: