diff options
| author | arg@mig29 <unknown> | 2006-12-08 10:40:09 +0100 |
|---|---|---|
| committer | arg@mig29 <unknown> | 2006-12-08 10:40:09 +0100 |
| commit | a308b7507abb77940f3b4ba34655c5a7c234bee3 (patch) | |
| tree | 94ff408abea2837a11e85cedecffc7e211690ba3 | |
| parent | we don't use the term clients anymore, windows is the better term (diff) | |
| download | dwm-a308b7507abb77940f3b4ba34655c5a7c234bee3.tar.gz dwm-a308b7507abb77940f3b4ba34655c5a7c234bee3.zip | |
removed the hardcoded fixed fallback, it is useless in non-Latin1 environments
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | draw.c | 5 |
2 files changed, 2 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # dwm version | 1 | # dwm version |
| 2 | VERSION = 2.6 | 2 | VERSION = 2.7 |
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| @@ -197,10 +197,7 @@ setfont(const char *fontstr) { | |||
| 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; |
