Commit c631e9b

Christoph Lohmann <20h@r-36.net>
2012-11-02 15:07:11
Make it possible to use the corefont font description too. It is not very
useful, but easy to implement.
1 parent 393825f
Changed files (1)
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);