summaryrefslogtreecommitdiff
path: root/src/font.c
blob: 35e77ec42c399adfe5a62c96b46fbe2ddfe21432 (plain)
1
2
3
4
5
6
7
8
9
10
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);
}