chiark / gitweb /
Use the existing packaged DejaVuSans font.
authorSimon Tatham <anakin@pobox.com>
Sat, 16 Jan 2021 14:28:52 +0000 (14:28 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 16 Jan 2021 14:28:52 +0000 (14:28 +0000)
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

index 5d6c0ffc60fbd15c4b44f9217359111de290f8a1..58103f98c6eeaa210bab877d7303d191e649e575 100644 (file)
--- 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)
     {