diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-11-02 20:07:11 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-11-02 20:07:11 +0100 |
commit | d92ad6401714a9002b66ca07ddf8595f38534ea6 (patch) | |
tree | 25318e8b5f03a4b6393e12b3a08d63928d9d715c | |
parent | dcf0955466fad18da645f6cfc5ba36fc14d78f8e (diff) | |
download | st-patched-d92ad6401714a9002b66ca07ddf8595f38534ea6.tar.bz2 st-patched-d92ad6401714a9002b66ca07ddf8595f38534ea6.tar.xz st-patched-d92ad6401714a9002b66ca07ddf8595f38534ea6.zip |
Make it possible to use the corefont font description too. It is not very
useful, but easy to implement.
-rw-r--r-- | st.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2226,7 +2226,12 @@ xloadfonts(char *fontstr, int fontsize) { | |||
2226 | FcResult result; | 2226 | FcResult result; |
2227 | double fontval; | 2227 | double fontval; |
2228 | 2228 | ||
2229 | pattern = FcNameParse((FcChar8 *)fontstr); | 2229 | if(fontstr[0] == '-') { |
2230 | pattern = XftXlfdParse(fontstr, False, False); | ||
2231 | } else { | ||
2232 | pattern = FcNameParse((FcChar8 *)fontstr); | ||
2233 | } | ||
2234 | |||
2230 | if(!pattern) | 2235 | if(!pattern) |
2231 | die("st: can't open font %s\n", fontstr); | 2236 | die("st: can't open font %s\n", fontstr); |
2232 | 2237 | ||