diff options
author | cflip <cflip@cflip.net> | 2023-01-19 10:47:49 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-19 13:08:18 -0700 |
commit | d61a3f4921e55a753d4bc94de50dd7faffc3a348 (patch) | |
tree | 62e1393ff2ece4394f83c6fc7c339126d3e2a635 /font.h | |
parent | 7b3c0c1530fe0cafa8e0937833fa925086253c87 (diff) |
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.
Diffstat (limited to 'font.h')
-rw-r--r-- | font.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |