Skip to content

pyfonts

PyFonts logo

A simple and reproducible way of using fonts in matplotlib.

PyPI - Downloads


Quick start

# mkdocs: render
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
pip install git+https://github.com/JosephBARBIERDARNAL/pyfonts.git