dwm-meillo

diff 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
line diff
     1.1 --- a/draw.c	Thu Dec 07 16:38:57 2006 +0100
     1.2 +++ b/draw.c	Fri Dec 08 10:40:09 2006 +0100
     1.3 @@ -197,10 +197,7 @@
     1.4  		if(dc.font.xfont)
     1.5  			XFreeFont(dpy, dc.font.xfont);
     1.6  		dc.font.xfont = NULL;
     1.7 -		dc.font.xfont = XLoadQueryFont(dpy, fontstr);
     1.8 -		if (!dc.font.xfont)
     1.9 -			dc.font.xfont = XLoadQueryFont(dpy, "fixed");
    1.10 -		if (!dc.font.xfont)
    1.11 +		if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr)))
    1.12  			eprint("error, cannot init 'fixed' font\n");
    1.13  		dc.font.ascent = dc.font.xfont->ascent;
    1.14  		dc.font.descent = dc.font.xfont->descent;