-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbasic_font.h
More file actions
46 lines (37 loc) · 1.26 KB
/
Copy pathbasic_font.h
File metadata and controls
46 lines (37 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef BASIC_FONT_H
#define BASIC_FONT_H
#include <stdint.h>
#define GLYPH_WHITE_WIDTH 5
#define GLYPH_WHITE_HEIGHT 11
#define GLYPH_GAP 1
#define GLYPH_MD_WHITE_WIDTH 14
#define GLYPH_MD_WHITE_HEIGHT 18
#define GLYPH_MD_GAP 0
#define GLYPH_SML_WHITE_WIDTH 8
#define GLYPH_SML_WHITE_HEIGHT 11
#define GLYPH_SML_GAP 0
#define GLYPH_HG_WHITE_WIDTH 16
#define GLYPH_HG_WHITE_HEIGHT 24
#define GLYPH_HG_GAP 0
void font_init();
void font_flush();
void font_draw_big(const char *text, int16_t vx, int16_t vy);
void font_draw_md(const char *text, int16_t vx, int16_t vy);
void font_draw_sm(const char *text, int16_t vx, int16_t vy);
void font_draw_hg(const char *text, int16_t vx, int16_t vy);
uint16_t font_measurew_big(const char *text);
uint16_t font_measurew_md(const char *text);
uint16_t font_measurew_sm(const char *text);
uint16_t font_measurew_hg(const char *text);
void font_set_color(uint8_t r0, uint8_t g0, uint8_t b0);
void font_set_fade(uint8_t fade);
void font_set_color_default();
void font_set_color_sonic();
void font_set_color_miles();
void font_set_color_knuckles();
void font_set_color_amy();
void font_set_color_super();
void font_set_color_yellow();
void font_set_color_white();
void font_reset_color();
#endif