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.4.0.tar.gz (267.3 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.4.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyfonts-1.4.0.tar.gz
Algorithm Hash digest
SHA256 923c30e97911b0ad534f87b9650f13319a0d437e860be041bcbff72432a19013
MD5 4d6a32a1b0878676784af4d6f7994ae5
BLAKE2b-256 79bf9899da17ac259b0d14d17169e0ed768464b0680306cc1837663204a267af

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfonts-1.4.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.4.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pyfonts-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a22384b7964e0a1ef5f4203758d9d74488359c800793fc35a0285baa3b54cd09
MD5 1fa329a3c23d834d40639aee4810f989
BLAKE2b-256 b2e3b16d8b52888503196607cf419379e23d1dda6c7156847503d4b6fed30e06

See more details on using hashes here.

Provenance

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