1
0
mirror of git://git.suckless.org/st synced 2024-12-24 15:12:03 +00:00

Make it possible to use the corefont font description too. It is not very

useful, but easy to implement.
This commit is contained in:
Christoph Lohmann 2012-11-02 20:07:11 +01:00
parent 393825f9f8
commit c631e9bb91

5
st.c
View File

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