mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 15:25:58 +01: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:
parent
393825f9f8
commit
c631e9bb91
1 changed files with 6 additions and 1 deletions
5
st.c
5
st.c
|
@ -2226,7 +2226,12 @@ xloadfonts(char *fontstr, int fontsize) {
|
||||||
FcResult result;
|
FcResult result;
|
||||||
double fontval;
|
double fontval;
|
||||||
|
|
||||||
|
if(fontstr[0] == '-') {
|
||||||
|
pattern = XftXlfdParse(fontstr, False, False);
|
||||||
|
} else {
|
||||||
pattern = FcNameParse((FcChar8 *)fontstr);
|
pattern = FcNameParse((FcChar8 *)fontstr);
|
||||||
|
}
|
||||||
|
|
||||||
if(!pattern)
|
if(!pattern)
|
||||||
die("st: can't open font %s\n", fontstr);
|
die("st: can't open font %s\n", fontstr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue