1
0

fixed fallback

This commit is contained in:
Anselm R. Garbe 2007-09-15 20:28:20 +02:00
parent 11cb2e7dcc
commit b97783b07f

6
main.c
View File

@ -160,8 +160,10 @@ initfont(const char *fontstr) {
if(dc.font.xfont) if(dc.font.xfont)
XFreeFont(dpy, dc.font.xfont); XFreeFont(dpy, dc.font.xfont);
dc.font.xfont = NULL; dc.font.xfont = NULL;
if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) {
eprint("error, cannot load font: '%s'\n", 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.ascent = dc.font.xfont->ascent;
dc.font.descent = dc.font.xfont->descent; dc.font.descent = dc.font.xfont->descent;
} }