Repository navigation
Commit 9416580
committed
font-manager: document which built-in faces are uncompressed, and why
The 12px (getFont default) and 16px Montserrat faces ship uncompressed: RLE
compression decodes every glyph on every draw, measured on the badge at
0.062 -> 0.037ms per glyph at 12px and 0.056 -> 0.034ms at 16px, so a full
text screen repaints ~20ms faster for +6.7KB of firmware. Also records how
to benchmark a candidate size before changing it.1 parent c19bfcc commit 9416580
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
79 | 94 | | |
80 | 95 | | |
81 | 96 | | |
| |||
0 commit comments