Very large fonts¶
The Evaluation and Commercial editions add support for very large fonts.
Very large fonts include sizes of 96, 128, 192 and 248 pixels.
Displaying abAB12
on a 11.98” colours panel.
Configure¶
Very large fonts can be either provided by header files or read from external SPI Flash.
Please refer to the corresponding procedure on how to configure them.
Memory footprint¶
A key concern is the memory footprint of the fonts, stored in either internal MCU Flash or external SPI Flash.
The table below lists the Flash footprint in kB.
Size | Mono Bold | Mono Normal | Sans Bold | Sans Normal | Serif Bold | Serif Normal |
---|---|---|---|---|---|---|
10 | 4 | 4 | 4 | 4 | 4 | 4 |
12 | 4 | 4 | 5 | 4 | 5 | 4 |
14 | 5 | 5 | 5 | 5 | 5 | 5 |
16 | 5 | 5 | 6 | 6 | 6 | 6 |
18 | 6 | 6 | 7 | 7 | 7 | 7 |
20 | 10 | 9 | 10 | 9 | 9 | 9 |
24 | 11 | 11 | 11 | 11 | 12 | 11 |
28 | 13 | 13 | 14 | 13 | 14 | 14 |
36 | 18 | 18 | 21 | 19 | 22 | 20 |
48 | 32 | 31 | 35 | 33 | 37 | 34 |
56 | 45 | 42 | 49 | 45 | 51 | 48 |
64 | 53 | 52 | 61 | 55 | 62 | 58 |
96 | 116 | 111 | 131 | 118 | 140 | 128 |
128 | 194 | 188 | 223 | 200 | 235 | 215 |
192 | 433 | 413 | 489 | 439 | 517 | 476 |
248 | 705 | 680 | 809 | 727 | 849 | 785 |
Digits-only fonts¶
To save memory, the digits-only fonts provides only the first 32 ASCII characters, from (
0x20
) to ?
(0x39
).
- Symbols
,
"
,#
,$
,%
,&
,'
- Operators
*
,+
,*
,/
,(
,)
,<
,=
,>
- Digits
0
,1
,2
,3
,4
,5
,6
,7
,8
,9
- Punctuation
.
,,
,:
,;
,!
,?
The table below lists the Flash footprint in kB.
Size | Mono Bold | Mono Normal | Sans Bold | Sans Normal | Serif Bold | Serif Normal |
---|---|---|---|---|---|---|
96 | 15 | 13 | ||||
128 | 25 | 24 | ||||
192 | 54 | 51 | ||||
248 | 87 | 83 |
Use¶
Very large fonts can be either provided by header files or read from external SPI Flash.
Please refer to the corresponding procedure on how to use them.
Example¶
Please refer to the example for Text.