[hackers] [st] Fixing italic bold. || Christoph Lohmann
commit ede83bd08b922f2f53264876f6500b564d3c5ef0
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sun Jun 1 15:54:28 2014 +0200
Fixing italic bold.
Thanks Felipe Spychalski <spychalski_AT_gmail.com> for the patch!
diff --git a/st.c b/st.c
index 506be0f..f48dab4 100644
--- a/st.c
+++ b/st.c
_AT_@ -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)) {
Received on Sun Jun 01 2014 - 15:54:46 CEST
This archive was generated by hypermail 2.3.0
: Sun Jun 01 2014 - 16:00:10 CEST