diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2015-11-18 00:41:38 +0100 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2015-11-18 00:41:38 +0100 |
commit | cc57a28eba7c2ec574d92817bff012b3b051dd6b (patch) | |
tree | 07cf32bb113fd185e022ad601c9b9333791f7e76 | |
parent | c3cd2edca606b463e775a10ed2498f38cd86555f (diff) |
die if no font could be loaded
-rw-r--r-- | sent.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -616,7 +616,8 @@ void xloadfonts() if (MAXFONTSTRLEN < snprintf(fstrs[j], MAXFONTSTRLEN, "%s:size=%d", fontfallbacks[j], FONTSZ(i))) die("font string too long"); } - fonts[i] = drw_fontset_create(d, (const char**)fstrs, LEN(fstrs)); + if (!(fonts[i] = drw_fontset_create(d, (const char**)fstrs, LEN(fstrs)))) + die("unable to load any font for size %d", FONTSZ(i)); } for (j = 0; j < LEN(fontfallbacks); j++) |