From 34e03fa120c85c44b7a55597c47e3cf7c7f05511 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sat, 15 Sep 2007 20:28:20 +0200 Subject: [PATCH] fixed fallback --- dmenubar/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dmenubar/main.c b/dmenubar/main.c index bf53763..fcabf01 100644 --- a/dmenubar/main.c +++ b/dmenubar/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; }