summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/eve_font.h
blob: c098519024b46a5446d7b1202ecd2f18d2d8c06d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdint.h>

#include "unicode.h"

typedef struct EVEFont {
    uint8_t id;
    uint8_t w;
    uint8_t h;
    uint8_t w_ch[128];
} EVEFont;

void eve_font_init(EVEFont *font, uint8_t font_id);
uint8_t eve_font_ch_w(EVEFont *font, ucp_t ch);
uint16_t eve_font_str_w(EVEFont *font, utf8_t *str);
uint16_t eve_font_buf_w(EVEFont *font, utf8_t *buf, uint16_t buf_len);
uint8_t eve_font_h(EVEFont *font);