August 2017
Beginner to intermediate
334 pages
8h 22m
English
To check the readily usable fonts installed in the system, Matplotlib provides a one-line solution with the font_manager class:
from matplotlib.font_manager import findSystemFontsfindSystemFonts(fontpaths=None, fontext='ttf')
Following is a screenshot showing how the paths of your installed fonts will be output as a list of strings:

You can input custom directories in the font paths and specify other font file extensions such as 'otf' for fontext. When the fontext parameter is not set, any font in the directories will be listed.
Read now
Unlock full access