diff options
author | Anselm R. Garbe <garbeam@gmail.com> | 2007-09-15 20:28:20 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-09-15 20:28:20 +0200 |
commit | b97783b07feae30f9df12c1a720d17a2dc877018 (patch) | |
tree | b035cfeeffc22eab17199d1f0b3bd10e86948c31 | |
parent | 11cb2e7dcc341e8c7409b26420a18de3fea99323 (diff) |
fixed fallback
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -160,8 +160,10 @@ initfont(const char *fontstr) { | |||
160 | if(dc.font.xfont) | 160 | if(dc.font.xfont) |
161 | XFreeFont(dpy, dc.font.xfont); | 161 | XFreeFont(dpy, dc.font.xfont); |
162 | dc.font.xfont = NULL; | 162 | dc.font.xfont = NULL; |
163 | if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) | 163 | if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) { |
164 | eprint("error, cannot load font: '%s'\n", fontstr); | 164 | if(!(dc.font.xfont = XLoadQueryFont(dpy, "fixed"))) |
165 | eprint("error, cannot load font: '%s'\n", fontstr); | ||
166 | } | ||
165 | dc.font.ascent = dc.font.xfont->ascent; | 167 | dc.font.ascent = dc.font.xfont->ascent; |
166 | dc.font.descent = dc.font.xfont->descent; | 168 | dc.font.descent = dc.font.xfont->descent; |
167 | } | 169 | } |