diff options
author | cflip <cflip@cflip.net> | 2023-01-10 17:31:27 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-10 17:31:27 -0700 |
commit | 3eaf3418928e9e9eac271961a983b720a7989972 (patch) | |
tree | bc2c4995aadbf5c1d0a8bf9f6df628d0b4647823 /font.h | |
parent | 0cd5d2b28f7529f4f9f7b31b9f54e76ada76d9b7 (diff) |
Parse unicode tables in PSF fonts
Diffstat (limited to 'font.h')
-rw-r--r-- | font.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -4,9 +4,7 @@ #include <SDL2/SDL.h> #define PSF_MAGIC_NUMBER 0x864ab572 - -typedef struct { -} PSFFontHeader; +#define PSF_FLAG_UNICODE 1 typedef struct { uint32_t magic; @@ -18,6 +16,7 @@ typedef struct { uint32_t height; uint32_t width; uint8_t *glyph_data; + uint16_t *unicode_desc; } PSFFont; PSFFont font_load(const char *); |