gpiozero.fonts
GPIO Zero includes a concept of "fonts" which is somewhat different to that you may be familiar with. While a typical printing font determines how a particular character is rendered on a page, a GPIO Zero font determines how a particular character is rendered by a series of lights, like LED segments (e.g. with ~gpiozero.LEDCharDisplay
or ~gpiozero.LEDMultiCharDisplay
).
As a result, GPIO Zero's fonts are quite crude affairs, being little more than mappings of characters to tuples of LED states. Still, it helps to have a "friendly" format for creating such fonts, and in this module the library provides several routines for this purpose.
The module itself is typically imported as follows:
from gpiozero import fonts
load_font_7seg
load_font_14seg
load_segment_font