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.2.0.tar.gz (266.5 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.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

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

Hashes for pyfonts-1.2.0.tar.gz
Algorithm Hash digest
SHA256 42e70c6518cba702852d5814db50f5a05b77e2b6b1b7752aafcbe01d8facaada
MD5 47bff10541fb52292d3c649ffd464917
BLAKE2b-256 4a7f3f6a942980a20fc0658c5142eaa351e6800586e70e00791416501f6de58f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfonts-1.2.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.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

Hashes for pyfonts-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2629f9065ad2edbce215f4011c25a9f74d4a67f18be34d8a873b722c41eeb51e
MD5 e0ff3b0d4459408b7647b8bae057123e
BLAKE2b-256 81499a2ffc68c9d1d8796a887ef48a7037502dbf04f266e808944f29a7539e3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfonts-1.2.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