aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2014-06-01 15:54:28 +0200
committerChristoph Lohmann <20h@r-36.net>2014-06-01 15:54:28 +0200
commitede83bd08b922f2f53264876f6500b564d3c5ef0 (patch)
treea5edf2867ea44094b81dc51e3d81df32213dfd1d
parent2411308bd24c4db97a3bb06d38f183a679aec1ea (diff)
downloadst-ede83bd08b922f2f53264876f6500b564d3c5ef0.tar.gz
st-ede83bd08b922f2f53264876f6500b564d3c5ef0.zip
Fixing italic bold.
Thanks Felipe Spychalski <spychalski@gmail.com> for the patch!
-rw-r--r--st.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/st.c b/st.c
index 506be0f..f48dab4 100644
--- a/st.c
+++ b/st.c
@@ -3149,8 +3149,13 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
3149 if(BETWEEN(base.fg, 0, 7)) 3149 if(BETWEEN(base.fg, 0, 7))
3150 fg = &dc.col[base.fg + 8]; 3150 fg = &dc.col[base.fg + 8];
3151 3151
3152 font = &dc.bfont; 3152 if(base.mode & ATTR_ITALIC) {
3153 frcflags = FRC_BOLD; 3153 font = &dc.ibfont;
3154 frcflags = FRC_ITALICBOLD;
3155 } else {
3156 font = &dc.bfont;
3157 frcflags = FRC_BOLD;
3158 }
3154 } 3159 }
3155 3160
3156 if(IS_SET(MODE_REVERSE)) { 3161 if(IS_SET(MODE_REVERSE)) {