import matplotlib.font_manager
[f.name for f in matplotlib.font_manager.fontManager.ttflist]
[f.name for f in matplotlib.font_manager.fontManager.afmlist]
How can i get list of font family(or Name of Font) in matplotlib