[hackers] [st] Make it possible to use the corefont font description too. It is not very || Christoph Lohmann
changeset: 376:ce2ffceb32a8
user: Christoph Lohmann <20h_AT_r-36.net>
date: Fri Nov 02 20:07:11 2012 +0100
files: st.c
description:
Make it possible to use the corefont font description too. It is not very
useful, but easy to implement.
diff -r 5f7ba740c6f0 -r ce2ffceb32a8 st.c
--- a/st.c Fri Nov 02 19:56:02 2012 +0100
+++ b/st.c Fri Nov 02 20:07:11 2012 +0100
_AT_@ -2226,7 +2226,12 @@
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);
Received on Fri Nov 02 2012 - 20:10:48 CET
This archive was generated by hypermail 2.3.0
: Fri Nov 02 2012 - 20:12:08 CET