Skip to main content

A simple and reproducible way of using fonts in matplotlib

Project description

pyfonts

Pyfonts logo

A simple and reproducible way of using fonts in matplotlib. In short, pyfonts:

  • allows you to use all Google Font fonts
  • allows you to use any font from an arbitrary URL
  • is fast (thanks to its cache system)

PyPI Downloads Coverage


Quick start

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
)

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.1.3.tar.gz (189.6 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.1.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyfonts-1.1.3.tar.gz
Algorithm Hash digest
SHA256 82d4a336d0c46c35b0499cdc7f1b185190dd60884a12b1a91ecd9dc2c55dc9e6
MD5 10b6d525ab52c4d9702df906220f7efb
BLAKE2b-256 0d3bb72d66ef3f22af0e13f34856b09f3128c662ef9fe6250f3a36797fc0cb2a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyfonts-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3c4f9a81616a12908d08480f38f28060d60eab7c235a8f5493ac5846ebb30a3d
MD5 17a487b40cb25f2cb5ceceaf5e4e0f62
BLAKE2b-256 53c2b289e6d18c599bc97bcbc8f809fed50933e7be62c5180f5366961f4f9d41

See more details on using hashes here.

Provenance

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