Fonts in Matplotlib
Matplotlib needs fonts to work with its text engine, some of which are shipped alongside the installation. The default font is DejaVu Sans which covers most European writing systems. However, users can configure the default fonts, and provide their own custom fonts. See Customizing text properties for details and Text with non-latin glyphs in particular for glyphs not supported by DejaVu Sans.
Matplotlib also provides an option to offload text rendering to a TeX engine
(usetex=True), see Text rendering with LaTeX.
Fonts in PDF and PostScript
Fonts have a long (and sometimes incompatible) history in computing, leading to different platforms supporting different types of fonts. In practice, Matplotlib supports three font specifications (in addition to pdf 'core fonts', which are explained later in the guide):