From d61a3f4921e55a753d4bc94de50dd7faffc3a348 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 19 Jan 2023 10:47:49 -0700 Subject: Load gzipped fonts from /usr/local/share/consolefonts/ The editor now loads fonts from /usr/ instead of the current working directory. Since they are gzipped the font loading code now uses zlib to read from the files. These fonts in particular were installed with `make install-psf` from the Terminus makefile, however the location may vary from system to system. --- font.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'font.h') diff --git a/font.h b/font.h index c1ae680..9ef7cfc 100644 --- a/font.h +++ b/font.h @@ -6,6 +6,9 @@ #define PSF_MAGIC_NUMBER 0x864ab572 #define PSF_FLAG_UNICODE 1 +/* TODO: It would be nice if this could be calculated while loading the font */ +#define UNICODE_TABLE_SIZE 1024 + typedef struct { uint32_t magic; uint32_t version; -- cgit v1.2.3