diff options
-rw-r--r-- | conf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/conf.c b/conf.c index 6fe65f6..ea657f1 100644 --- a/conf.c +++ b/conf.c @@ -104,9 +104,12 @@ conf_screen(struct screen_ctx *sc) sc->gap = Conf.gap; - sc->xftfont = XftFontOpenName(X_Dpy, sc->which, Conf.font); - if (sc->xftfont == NULL) - errx(1, "XftFontOpenName"); + sc->xftfont = XftFontOpenXlfd(X_Dpy, sc->which, Conf.font); + if (sc->xftfont == NULL) { + sc->xftfont = XftFontOpenName(X_Dpy, sc->which, Conf.font); + if (sc->xftfont == NULL) + errx(1, "XftFontOpenName"); + } for (i = 0; i < nitems(color_binds); i++) { if (i == CWM_COLOR_MENU_FONT_SEL && *Conf.color[i] == '\0') { |