mirror of git://git.suckless.org/st
Fixing italic bold.
Thanks Felipe Spychalski <spychalski@gmail.com> for the patch!
This commit is contained in:
parent
2411308bd2
commit
ede83bd08b
9
st.c
9
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))
|
if(BETWEEN(base.fg, 0, 7))
|
||||||
fg = &dc.col[base.fg + 8];
|
fg = &dc.col[base.fg + 8];
|
||||||
|
|
||||||
font = &dc.bfont;
|
if(base.mode & ATTR_ITALIC) {
|
||||||
frcflags = FRC_BOLD;
|
font = &dc.ibfont;
|
||||||
|
frcflags = FRC_ITALICBOLD;
|
||||||
|
} else {
|
||||||
|
font = &dc.bfont;
|
||||||
|
frcflags = FRC_BOLD;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IS_SET(MODE_REVERSE)) {
|
if(IS_SET(MODE_REVERSE)) {
|
||||||
|
|
Loading…
Reference in New Issue