diff options
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); +} |
