Changed default font string, removed missing fontset warnings
This commit is contained in:
parent
b8458271fb
commit
7177270c10
|
@ -9,7 +9,7 @@ enum {
|
||||||
/* bar font:
|
/* bar font:
|
||||||
* (see X(7) section "FONT NAMES" for valid values)
|
* (see X(7) section "FONT NAMES" for valid values)
|
||||||
*/
|
*/
|
||||||
static const char * const BAR_FONT = "6x13";
|
static const char * const BAR_FONT = "fixed";
|
||||||
|
|
||||||
/* colors:
|
/* colors:
|
||||||
* (see X(7) section "COLOR NAMES" for valid values)
|
* (see X(7) section "COLOR NAMES" for valid values)
|
||||||
|
|
5
window.c
5
window.c
|
@ -54,11 +54,8 @@ void win_init_font(Display *dpy, const char *fontstr) {
|
||||||
char *def, **missing;
|
char *def, **missing;
|
||||||
|
|
||||||
font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);
|
font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def);
|
||||||
if (missing) {
|
if (missing)
|
||||||
while (n--)
|
|
||||||
warn("missing fontset: %s", missing[n]);
|
|
||||||
XFreeStringList(missing);
|
XFreeStringList(missing);
|
||||||
}
|
|
||||||
if (font.set) {
|
if (font.set) {
|
||||||
XFontStruct **xfonts;
|
XFontStruct **xfonts;
|
||||||
char **font_names;
|
char **font_names;
|
||||||
|
|
Loading…
Reference in a new issue