summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-19 10:47:49 -0700
committercflip <cflip@cflip.net>2023-01-19 13:08:18 -0700
commitd61a3f4921e55a753d4bc94de50dd7faffc3a348 (patch)
tree62e1393ff2ece4394f83c6fc7c339126d3e2a635 /window.c
parent7b3c0c1530fe0cafa8e0937833fa925086253c87 (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 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
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;