tMake it possible to use the corefont font description too. It is not very - st… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit c631e9bb917ec268463b3f1f331b286c43a6bd0b | |
parent 393825f9f8a23dfcdfda5220aa8029e9356fa15b | |
Author: Christoph Lohmann <[email protected]> | |
Date: Fri, 2 Nov 2012 20:07:11 +0100 | |
Make it possible to use the corefont font description too. It is not very | |
useful, but easy to implement. | |
Diffstat: | |
M st.c | 7 ++++++- | |
1 file changed, 6 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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); | |