aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index bf53763..fcabf01 100644
--- a/main.c
+++ b/main.c
@@ -160,8 +160,10 @@ initfont(const char *fontstr) {
160 if(dc.font.xfont) 160 if(dc.font.xfont)
161 XFreeFont(dpy, dc.font.xfont); 161 XFreeFont(dpy, dc.font.xfont);
162 dc.font.xfont = NULL; 162 dc.font.xfont = NULL;
163 if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) 163 if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) {
164 eprint("error, cannot load font: '%s'\n", fontstr); 164 if(!(dc.font.xfont = XLoadQueryFont(dpy, "fixed")))
165 eprint("error, cannot load font: '%s'\n", fontstr);
166 }
165 dc.font.ascent = dc.font.xfont->ascent; 167 dc.font.ascent = dc.font.xfont->ascent;
166 dc.font.descent = dc.font.xfont->descent; 168 dc.font.descent = dc.font.xfont->descent;
167 } 169 }