diff options
author | Christoph Lohmann <20h@r-36.net> | 2013-02-13 21:35:27 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-02-13 21:35:27 +0100 |
commit | 05a1ff03e95877a3b4c0ffee3164db65bb36d3ed (patch) | |
tree | e17463a851f9bbd8828084c1e7f047c2e21b7ded | |
parent | eeffbe11ab8b3ea94eefcf178003e36d389f8776 (diff) | |
download | st-05a1ff03e95877a3b4c0ffee3164db65bb36d3ed.tar.gz |
Adding mor explict font patterns.
-rw-r--r-- | st.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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\n", fontstr); @@ -2451,6 +2453,7 @@ xloadfonts(char *fontstr, int fontsize) { die("st: can't open font %s\n", fontstr); FcPatternDel(pattern, FC_WEIGHT); + FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_MEDIUM); if(xloadfont(&dc.ifont, pattern)) die("st: can't open font %s\n", fontstr); |