[hackers] [st] Adding mor explict font patterns. || Christoph Lohmann
commit 05a1ff03e95877a3b4c0ffee3164db65bb36d3ed
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Wed Feb 13 21:35:27 2013 +0100
Adding mor explict font patterns.
diff --git a/st.c b/st.c
index 2c803fa..72f12a7 100644
--- a/st.c
+++ b/st.c
_AT_@ -2440,7 +2440,9 @@ xloadfonts(char *fontstr, int fontsize) {
xw.cw = dc.font.width;
xw.ch = dc.font.height;
+ FcPatternDel(pattern, FC_SLANT);
FcPatternDel(pattern, FC_WEIGHT);
+ FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ROMAN);
FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
if(xloadfont(&dc.bfont, pattern))
die("st: can't open font %s
", fontstr);
_AT_@ -2451,6 +2453,7 @@ xloadfonts(char *fontstr, int fontsize) {
die("st: can't open font %s
", fontstr);
FcPatternDel(pattern, FC_WEIGHT);
+ FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_MEDIUM);
if(xloadfont(&dc.ifont, pattern))
die("st: can't open font %s
", fontstr);
Received on Wed Feb 13 2013 - 21:37:59 CET
This archive was generated by hypermail 2.3.0
: Thu Feb 21 2013 - 19:26:35 CET