X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=8e0df08368b62d7a0a71cf283aff6409f05e29f2;hb=c631e9bb917ec268463b3f1f331b286c43a6bd0b;hp=cdf1fdc416744926231221a5c2628d2ca4837093;hpb=393825f9f8a23dfcdfda5220aa8029e9356fa15b;p=st.git 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);