From: Simon Tatham Date: Sat, 16 Jan 2021 14:28:52 +0000 (+0000) Subject: Use the existing packaged DejaVuSans font. X-Git-Tag: archive/debian/1.18-1~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~sgtatham/git?a=commitdiff_plain;h=8e043092262eb82d399786250a1ce7997f192154;p=chroma-debian.git 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). --- 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) {