diff options
author | Christoph Lohmann <20h@r-36.net> | 2014-06-01 15:54:28 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2014-06-01 15:54:28 +0200 |
commit | ede83bd08b922f2f53264876f6500b564d3c5ef0 (patch) | |
tree | a5edf2867ea44094b81dc51e3d81df32213dfd1d /st.c | |
parent | 2411308bd24c4db97a3bb06d38f183a679aec1ea (diff) | |
download | st-ede83bd08b922f2f53264876f6500b564d3c5ef0.tar.gz st-ede83bd08b922f2f53264876f6500b564d3c5ef0.tar.bz2 |
Fixing italic bold.
Thanks Felipe Spychalski <spychalski@gmail.com> for the patch!
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -3149,8 +3149,13 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { if(BETWEEN(base.fg, 0, 7)) fg = &dc.col[base.fg + 8]; - font = &dc.bfont; - frcflags = FRC_BOLD; + if(base.mode & ATTR_ITALIC) { + font = &dc.ibfont; + frcflags = FRC_ITALICBOLD; + } else { + font = &dc.bfont; + frcflags = FRC_BOLD; + } } if(IS_SET(MODE_REVERSE)) { |