pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
393825f
)
Make it possible to use the corefont font description too. It is not very
author
Christoph Lohmann
<20h@r-36.net>
Fri, 2 Nov 2012 19:07:11 +0000
(20:07 +0100)
committer
Christoph Lohmann
<20h@r-36.net>
Fri, 2 Nov 2012 19:07:11 +0000
(20:07 +0100)
useful, but easy to implement.
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
cdf1fdc
..
8e0df08
100644
(file)
--- 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);