Working with Fonts

You can specify which font you want to use as a property of any of the widgets that contain text. You can use system-wide fonts that are installed on the computer running MPF as well as fonts that are in your machine’s /fonts folder.

You specify fonts by name only (not including the extension), and MPF will first look in your machine’s fonts folder, and if it doesn’t find the font there, it will look in the MPF-MC’s built-in fonts folder, and finally in your machine’s system fonts location.

Note

The MPC MC contains a few pixel-based for use on DMDs. See How to use DMD fonts for details.

For consistency of appearance across computers, we highly recommend that you put the fonts you want to use in your machine’s fonts folder.

Specifying which font a particular widget uses is done via that widget’s font_name: setting, so see either the Text Widget or Text Input Widget reference for details.

Keep in mind that all widget properties, including fonts, can be configured as part of a widget style and easily applied to new widgets with a single line.