Skip to content

y-sunflower/pyfonts

Repository files navigation

pyfonts

PyPI Downloads Coverage

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)

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

About

A simple and reproducible way of using fonts in matplotlib

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •