commit f285a36054d253e46e1c7de10d6e7aedca75562c
parent 859e7ff1656382788559e5918a4aa2f7a2416178
Author: Kris Maglione <jg@suckless.org>
Date: Mon, 5 Feb 2007 21:21:17 -0500
Actually *try* to load 'fixed' font before we die saying we can't load it.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/draw.c b/draw.c
@@ -56,6 +56,8 @@ loadfont(Blitz *blitz, BlitzFont *font) {
XFreeFont(blitz->dpy, font->xfont);
font->xfont = nil;
font->xfont = XLoadQueryFont(blitz->dpy, fontname);
+ if (!font->xfont)
+ font->xfont = XLoadQueryFont(blitz->dpy, "fixed");
if (!font->xfont) {
fprintf(stderr, "wmii: error, cannot load 'fixed' font\n");
exit(1);