From 6e7eb17404e1e5b71e71e212c612fd466d8e580d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 15 Sep 2007 21:40:37 +0200 Subject: [PATCH] try to load fixed font if other fails --- config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.c b/config.c index 75b20aadd..a724920a3 100644 --- a/config.c +++ b/config.c @@ -416,7 +416,8 @@ initfont(const char *fontstr, Display * disp, DC * drawcontext) if(drawcontext->font.xfont) XFreeFont(disp, drawcontext->font.xfont); drawcontext->font.xfont = NULL; - if(!(drawcontext->font.xfont = XLoadQueryFont(disp, fontstr))) + if(!(drawcontext->font.xfont = XLoadQueryFont(disp, fontstr)) + || !(drawcontext->font.xfont = XLoadQueryFont(disp, "fixed"))) eprint("error, cannot load font: '%s'\n", fontstr); drawcontext->font.ascent = drawcontext->font.xfont->ascent; drawcontext->font.descent = drawcontext->font.xfont->descent;