summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-01-16 14:28:52 +0000
committerSimon Tatham <anakin@pobox.com>2021-01-16 14:28:52 +0000
commit8e043092262eb82d399786250a1ce7997f192154 (patch)
treee024ce621716142de542c8a210e97368f5ff7621
parent77c0e1206403922047f9c6c933fff6f91599b87a (diff)
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).
-rw-r--r--sdlfont.c4
1 files changed, 1 insertions, 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)
{