summaryrefslogtreecommitdiff
blob: c091a08b61306a9d58fb01fa76416095f4ed85c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/uitoolkit/fb/ui_font.c
+++ b/uitoolkit/fb/ui_font.c
@@ -1625,11 +1625,11 @@
       }
       percent = 0;
 #else /* __linux__ */
-      if (stat("/usr/share/fonts/X11/misc/unifont.pcf.gz", &st) == 0) {
-        font_file = "/usr/share/fonts/X11/misc/unifont.pcf.gz";
+      if (stat(XDATADIR "/fonts/unifont/unifont.pcf.gz", &st) == 0) {
+        font_file = XDATADIR "/fonts/unifont/unifont.pcf.gz";
         percent = 100;
       } else {
-        font_file = "/usr/share/fonts/X11/misc/10x20.pcf.gz";
+        font_file = XDATADIR "/fonts/misc/10x20.pcf.gz";
         percent = 0;
       }
 #endif