How can i get list of font family(or Name of Font) in matplotlib.
import matplotlib.font_manager
matplotlib.font_manager.findSystemFonts(fontpaths=None, fontext='ttf')
With help of this code i can get only directory of font. How can i get list of Font-Name like
"Century Schoolbook L", "Ubuntu".... etc
Thanks in Advance.
set()
will give you the unique fonts ordered apathetically. So,set([f.name for f in matplotlib.font_manager.fontManager.afmlist])
andset([f.name for f in matplotlib.font_manager.fontManager.ttflist])
– Topcoat