Python – How to get a list of all the fonts currently available for Matplotlib

matplotlibpython

e.g. when I want to set font in

matplotlib.rc('font', **font)

Thanks.

Best Solution

import matplotlib.font_manager
matplotlib.font_manager.findSystemFonts(fontpaths=None, fontext='ttf')

Check this for other options.