Introduction
Introduction Statistics Contact Development Disclaimer Help
tFixing italic bold. - st - [fork] customized build of st, the simple terminal
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit ede83bd08b922f2f53264876f6500b564d3c5ef0
parent 2411308bd24c4db97a3bb06d38f183a679aec1ea
Author: Christoph Lohmann <[email protected]>
Date: Sun, 1 Jun 2014 15:54:28 +0200
Fixing italic bold.
Thanks Felipe Spychalski <[email protected]> for the patch!
Diffstat:
M st.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -3149,8 +3149,13 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, …
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)) {
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.