pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2411308
)
Fixing italic bold.
author
Christoph Lohmann
<20h@r-36.net>
Sun, 1 Jun 2014 13:54:28 +0000
(15:54 +0200)
committer
Christoph Lohmann
<20h@r-36.net>
Sun, 1 Jun 2014 13:54:28 +0000
(15:54 +0200)
Thanks Felipe Spychalski <spychalski@gmail.com> for the patch!
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
506be0f
..
f48dab4
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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)) {