From d92ad6401714a9002b66ca07ddf8595f38534ea6 Mon Sep 17 00:00:00 2001
From: Christoph Lohmann <20h@r-36.net>
Date: Fri, 2 Nov 2012 20:07:11 +0100
Subject: Make it possible to use the corefont font description too. It is not
 very useful, but easy to implement.

---
 st.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/st.c b/st.c
index cdf1fdc..8e0df08 100644
--- a/st.c
+++ b/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);
 
-- 
cgit v1.2.3