Fonts
GDN bundles 37 bitmap fonts tuned for tiny panels. Pass one by name to c.text(...):
c.text("BIG", 2, 2, font="16x24", color="green")
c.text("TINY", 2, 26, font="4x5", color="white")
Uppercase only
Most of these fonts contain only capital letters and digits. Lowercase letters are
silently skipped, so call .upper() on text that comes from an input.
Every bundled font, rendered (specimen text ABC XYZ 0123):
| Font | Specimen |
|---|---|
10x10 | |
10x14 | |
10x16 | |
10x16_bold | |
16x20 | |
16x20_bold | |
16x24 | |
16x24_bold | |
19x28 | |
19x28_bold | |
20x30 | |
20x30_bold | |
20x30_scroll | |
22x32 | |
22x32_bold | |
24x36 | |
24x36_bold | |
3x4 | |
3x7 | |
4x5 | |
4x7 | |
5x5 | |
5x5b | |
5x7 | |
5x7b | |
6x16 | |
6x6 | |
6x8 | |
7x10 | |
7x12 | |
7x14 | |
7x16 | |
8x12 | |
picopixel | |
scoretext | |
teamabbrev | |
vs |
List them any time with gdn fonts.