diff options
author | Simon Tatham <anakin@pobox.com> | 2021-01-16 14:28:52 +0000 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2021-01-16 14:28:52 +0000 |
commit | 8e043092262eb82d399786250a1ce7997f192154 (patch) | |
tree | e024ce621716142de542c8a210e97368f5ff7621 | |
parent | 77c0e1206403922047f9c6c933fff6f91599b87a (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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) { |