Commit Diff


commit - dcf0955466fad18da645f6cfc5ba36fc14d78f8e
commit + d92ad6401714a9002b66ca07ddf8595f38534ea6
blob - cdf1fdc416744926231221a5c2628d2ca4837093
blob + 8e0df08368b62d7a0a71cf283aff6409f05e29f2
--- st.c
+++ st.c
@@ -2226,7 +2226,12 @@ xloadfonts(char *fontstr, int fontsize) {
 	FcResult result;
 	double fontval;
 
-	pattern = FcNameParse((FcChar8 *)fontstr);
+	if(fontstr[0] == '-') {
+		pattern = XftXlfdParse(fontstr, False, False);
+	} else {
+		pattern = FcNameParse((FcChar8 *)fontstr);
+	}
+
 	if(!pattern)
 		die("st: can't open font %s\n", fontstr);