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.1.tar.gz (267.7 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.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfonts-1.4.1.tar.gz
  • Upload date:
  • Size: 267.7 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.1.tar.gz
Algorithm Hash digest
SHA256 ad17290747fdeb433502c44f5fde06574e27430396411a47a62319c1c2ace545
MD5 00e8a9f1d96e546d0206c0960be87781
BLAKE2b-256 ad2a6497ac9ed4956da2cf24e0e472902cd00bf74c2a3c928322dd33ec44bba0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyfonts-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 14.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9097596ba16f07833b06cb5d0a2bdcb2102b90e1db0f299bc1c515eebb356bdb
MD5 5cfc5f1338df5c6b3ea6b60335bcdd3d
BLAKE2b-256 ac9ce50494abca5047dbb38783db1ab06cefdcd182ce69014baff8fea2afe8ab

See more details on using hashes here.

Provenance

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