summaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-10 17:31:27 -0700
committercflip <cflip@cflip.net>2023-01-10 17:31:27 -0700
commit3eaf3418928e9e9eac271961a983b720a7989972 (patch)
treebc2c4995aadbf5c1d0a8bf9f6df628d0b4647823 /font.h
parent0cd5d2b28f7529f4f9f7b31b9f54e76ada76d9b7 (diff)
Parse unicode tables in PSF fonts
Diffstat (limited to 'font.h')
-rw-r--r--font.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/font.h b/font.h
index 4f82fca..c1ae680 100644
--- a/font.h
+++ b/font.h
@@ -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 *);