diff options
| author | raven <citrons@mondecitronne.com> | 2026-04-09 18:50:16 -0500 |
|---|---|---|
| committer | raven <citrons@mondecitronne.com> | 2026-04-09 18:51:00 -0500 |
| commit | 75920242a0efd749bf88fe1eb9a51946bb2a2365 (patch) | |
| tree | 0f5d35717b915b74e59161c69a722ada7b42123a /src/font.c | |
| parent | 18a86e1038b20cb6f8922beead08dcc24ba2a4d3 (diff) | |
context menu to jump to different mappings
Diffstat (limited to 'src/font.c')
| -rw-r--r-- | src/font.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/font.c b/src/font.c new file mode 100644 index 0000000..35e77ec --- /dev/null +++ b/src/font.c @@ -0,0 +1,11 @@ +#include <SDL3/SDL.h> +#include <SDL3_ttf/SDL_ttf.h> +#include "apl385.h" +#include "font.h" + +TTF_Font *font; + +void load_font() { + SDL_IOStream *io = SDL_IOFromConstMem(apl385_ttf, apl385_ttf_len); + font = TTF_OpenFontIO(io, true, FONT_SIZE); +} |
