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. --- window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window.c') diff --git a/window.c b/window.c index bbd7d2f..fbc9a36 100644 --- a/window.c +++ b/window.c @@ -24,7 +24,7 @@ void window_init(const char *title, int rows, int cols) if (SDL_Init(SDL_INIT_VIDEO) != 0) fatal_error("Failed to init SDL: %s\n", SDL_GetError()); - font = font_load("terminus/ter-u24n.psf"); + font = font_load("/usr/local/share/consolefonts/ter-u18n.psf.gz"); window_width = cols * font.width; window_height = rows * font.height; -- cgit v1.2.3