2014-04-29 12:26:51 +00:00
|
|
|
#ifndef __FONTS_H__
|
|
|
|
#define __FONTS_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define FONT_HEIGHT 8
|
2018-02-06 21:29:33 +00:00
|
|
|
#define FONT_STANDARD 0
|
2019-11-09 18:54:13 +00:00
|
|
|
|
|
|
|
#ifndef FONT_SKIP_FIXED
|
2019-04-18 14:27:27 +00:00
|
|
|
#define FONT_FIXED 1
|
2019-11-09 18:54:13 +00:00
|
|
|
#define FONTS 2
|
|
|
|
#else
|
|
|
|
#define FONTS 1
|
|
|
|
#endif
|
|
|
|
|
2019-04-18 14:27:27 +00:00
|
|
|
#define FONT_DOUBLE 0x80
|
2014-04-29 12:26:51 +00:00
|
|
|
|
2019-11-09 18:54:13 +00:00
|
|
|
extern const uint8_t *const font_data[FONTS][128 - 32];
|
2014-04-29 12:26:51 +00:00
|
|
|
|
2019-11-09 15:15:06 +00:00
|
|
|
int fontCharWidth(uint8_t font, uint8_t c);
|
|
|
|
const uint8_t *fontCharData(uint8_t font, uint8_t c);
|
2014-04-29 12:26:51 +00:00
|
|
|
|
|
|
|
#endif
|