Skip to main content

A simple and reproducible way of using fonts in matplotlib

Project description

pyfonts

PyPI Downloads Coverage Python Versions

Pyfonts logo

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)

See more examples


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

pyfonts-1.3.0.tar.gz (265.9 kB view details)

Uploaded Source

Built Distribution

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

pyfonts-1.3.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file pyfonts-1.3.0.tar.gz.

File metadata

  • Download URL: pyfonts-1.3.0.tar.gz
  • Upload date:
  • Size: 265.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfonts-1.3.0.tar.gz
Algorithm Hash digest
SHA256 445a75ab1b51533f96866f596ae7119775ab748843bccef5b2a8ecb08bf92633
MD5 ce4de549677d6c4ef1bb30e31a65fe59
BLAKE2b-256 e60dea4bb9ec63f60888c16b919b1829c569d80169ef1f073dbf1c723e8020e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfonts-1.3.0.tar.gz:

Publisher: pypi.yaml on y-sunflower/pyfonts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfonts-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: pyfonts-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfonts-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48fc5faff47083b9fd0bcb3888bae72dc78d25d8f0e44138bd0e3e5761e01982
MD5 4b8698149ebd9deeac747bf5b63c9d59
BLAKE2b-256 4e57e19d583def5524ebfc71f955c6a91706080996522e9eaeb64b39b95217eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfonts-1.3.0-py3-none-any.whl:

Publisher: pypi.yaml on y-sunflower/pyfonts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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