blob: 26e7cf001c4accb8515e31b0651a563776f400fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <stdlib.h>
#include "eve.h"
#include "font.h"
void eve_font_init(EVEFont *font, uint8_t font_id) {
font->id = font_id;
}
uint16_t eve_font_string_width(EVEFont *font, char *s) {
uint16_t r = 0;
while (*s) {
r += font->w[*s];
s++;
}
return r;
}
uint8_t eve_font_height(EVEFont *font) {
return font->h;
}
|