Mercurial > aewl
comparison draw.c @ 626:2644c951fc74
removed the hardcoded fixed fallback, it is useless in non-Latin1 environments
author | arg@mig29 |
---|---|
date | Fri, 08 Dec 2006 10:40:09 +0100 |
parents | bda4880c462d |
children | f83ac177a3a0 |
comparison
equal
deleted
inserted
replaced
625:0811e4114faa | 626:2644c951fc74 |
---|---|
195 } | 195 } |
196 else { | 196 else { |
197 if(dc.font.xfont) | 197 if(dc.font.xfont) |
198 XFreeFont(dpy, dc.font.xfont); | 198 XFreeFont(dpy, dc.font.xfont); |
199 dc.font.xfont = NULL; | 199 dc.font.xfont = NULL; |
200 dc.font.xfont = XLoadQueryFont(dpy, fontstr); | 200 if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) |
201 if (!dc.font.xfont) | |
202 dc.font.xfont = XLoadQueryFont(dpy, "fixed"); | |
203 if (!dc.font.xfont) | |
204 eprint("error, cannot init 'fixed' font\n"); | 201 eprint("error, cannot init 'fixed' font\n"); |
205 dc.font.ascent = dc.font.xfont->ascent; | 202 dc.font.ascent = dc.font.xfont->ascent; |
206 dc.font.descent = dc.font.xfont->descent; | 203 dc.font.descent = dc.font.xfont->descent; |
207 } | 204 } |
208 dc.font.height = dc.font.ascent + dc.font.descent; | 205 dc.font.height = dc.font.ascent + dc.font.descent; |