- For a Single User: Copy the font file to ~/.fonts/ (create this directory if it doesn't exist).
- Update Font Cache:
- Run fc-cache -fv in the terminal to update the font cache. This makes the new font available to applications on your system.
- Remove
~/.cache/matplotlib/fontlist-v330.json
import matplotlib.pyplot as plt
import matplotlib.font_manager as font_manager
# Path to your custom font