Package: hyperrogue / 8.3j+dfsg-3

system-dejavu.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Markus Koschany <apo@debian.org>
Date: Fri, 9 Sep 2016 22:33:28 +0200
Subject: system dejavu

Use Debian's system font.
Forwarded: not-needed
---
 src/graph.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/graph.cpp b/src/graph.cpp
index 1913e21..4c16e10 100644
--- a/src/graph.cpp
+++ b/src/graph.cpp
@@ -142,7 +142,7 @@ int qpixel3(SDL_Surface *surf, int x, int y) {
 
 void loadfont(int siz) {
   if(!font[siz]) {
-    font[siz] = TTF_OpenFont("DejaVuSans-Bold.ttf", siz);
+    font[siz] = TTF_OpenFont("/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf", siz);
     // Destination set by ./configure (in the GitHub repository)
     #ifdef FONTDESTDIR
     if (font[siz] == NULL) {