mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 01:18:28 +00:00
19 lines
293 B
C
19 lines
293 B
C
#include "fonts.h"
|
|
|
|
const uint8_t * const font_data[2][128] = {
|
|
{
|
|
#include"font.inc"
|
|
},
|
|
{
|
|
#include"fontfixed.inc"
|
|
},
|
|
};
|
|
|
|
int fontCharWidth(int font, char c) {
|
|
return font_data[font][c & 0x7f][0];
|
|
}
|
|
|
|
const uint8_t *fontCharData(int font, char c) {
|
|
return font_data[font][c & 0x7f] + 1;
|
|
}
|