|
|
@ -280,8 +280,6 @@ initfont(const char *fontstr) { |
|
|
|
if(!fontstr || fontstr[0] == '\0') |
|
|
|
if(!fontstr || fontstr[0] == '\0') |
|
|
|
eprint("error, cannot load font: '%s'\n", fontstr); |
|
|
|
eprint("error, cannot load font: '%s'\n", fontstr); |
|
|
|
missing = NULL; |
|
|
|
missing = NULL; |
|
|
|
if(dc.font.set) |
|
|
|
|
|
|
|
XFreeFontSet(dpy, dc.font.set); |
|
|
|
|
|
|
|
dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |
|
|
|
dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); |
|
|
|
if(missing) |
|
|
|
if(missing) |
|
|
|
XFreeStringList(missing); |
|
|
|
XFreeStringList(missing); |
|
|
|