1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 03:18:09 +00:00
trezor-firmware/legacy/gen/fonts.c

17 lines
312 B
C
Raw Normal View History

2014-04-29 12:26:51 +00:00
#include "fonts.h"
const uint8_t *const font_data[2][128] = {
{
#include "font.inc"
},
{
#include "fontfixed.inc"
},
2014-04-29 12:26:51 +00:00
};
2019-10-10 17:43:55 +00:00
int fontCharWidth(int font, uint8_t c) { return font_data[font][c & 0x7f][0]; }
2014-04-29 12:26:51 +00:00
2019-10-10 17:43:55 +00:00
const uint8_t *fontCharData(int font, uint8_t c) {
return font_data[font][c & 0x7f] + 1;
2014-04-29 12:26:51 +00:00
}