Узнайте с помощью
matplotlib_font_dirs.py
import matplotlib.font_manager
print(matplotlib.font_manager.X11FontDirectories)На моём Ubuntu 22.04 это выводит:
matplotlib_font_dirs_output.py
['/usr/X11R6/lib/X11/fonts/TTF/',
'/usr/X11/lib/X11/fonts',
'/usr/share/fonts/',
'/usr/local/share/fonts/',
'/usr/lib/openoffice/share/fonts/truetype/',
'~/.local/share/fonts',
'~/.fonts']
Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow