From 8e043092262eb82d399786250a1ce7997f192154 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 16 Jan 2021 14:28:52 +0000 Subject: [PATCH] Use the existing packaged DejaVuSans font. The upstream Chroma tarball came with a bundled copy of DejaVuSans. Using the standard Debian one instead saves disk space, gets a more up-to-date version of the font, and avoids having to deal with the subsidiary copyright notice for the font (graphics/font.txt). --- sdlfont.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sdlfont.c b/sdlfont.c index 5d6c0ff..58103f9 100644 --- a/sdlfont.c +++ b/sdlfont.c @@ -114,9 +114,7 @@ void font_init() char filename[FILENAME_MAX]; FT_Error error; - getfilename("graphics", directory, 0, LOCATION_SYSTEM); - - sprintf(filename, "%s/font.ttf", directory); + sprintf(filename, "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"); if((error = FT_Init_FreeType(&font_library)) != 0) { -- 2.30.2