summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-09-15 20:28:20 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-09-15 20:28:20 +0200
commitb97783b07feae30f9df12c1a720d17a2dc877018 (patch)
treeb035cfeeffc22eab17199d1f0b3bd10e86948c31 /main.c
parent11cb2e7dcc341e8c7409b26420a18de3fea99323 (diff)
fixed fallback
Diffstat (limited to 'main.c')
-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) {
if(dc.font.xfont)
XFreeFont(dpy, dc.font.xfont);
dc.font.xfont = NULL;
- if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr)))
- eprint("error, cannot load font: '%s'\n", fontstr);
+ if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) {
+ if(!(dc.font.xfont = XLoadQueryFont(dpy, "fixed")))
+ eprint("error, cannot load font: '%s'\n", fontstr);
+ }
dc.font.ascent = dc.font.xfont->ascent;
dc.font.descent = dc.font.xfont->descent;
}