summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2013-10-07 13:40:26 +0000
committerokan <okan>2013-10-07 13:40:26 +0000
commitbfd3f5e5e1728cacf0046e7d8e724e10b7380e7b (patch)
treef88e20f70bc0b587a2bcbbd3eba3987729d2d099
parent6ac51b8e41da0f47b6cf95bcb8ca58ec86378d88 (diff)
downloadcwm-bfd3f5e5e1728cacf0046e7d8e724e10b7380e7b.tar.gz
cwm-bfd3f5e5e1728cacf0046e7d8e724e10b7380e7b.tar.xz
cwm-bfd3f5e5e1728cacf0046e7d8e724e10b7380e7b.zip
trying parsing a XLFD string first, then by pattern
-rw-r--r--conf.c9
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') {