mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 12:56:22 +00:00
Fixing italic bold.
Thanks Felipe Spychalski <spychalski@gmail.com> for the patch!
This commit is contained in:
parent
2411308bd2
commit
ede83bd08b
1 changed files with 7 additions and 2 deletions
5
st.c
5
st.c
|
@ -3149,9 +3149,14 @@ 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];
|
||||||
|
|
||||||
|
if(base.mode & ATTR_ITALIC) {
|
||||||
|
font = &dc.ibfont;
|
||||||
|
frcflags = FRC_ITALICBOLD;
|
||||||
|
} else {
|
||||||
font = &dc.bfont;
|
font = &dc.bfont;
|
||||||
frcflags = FRC_BOLD;
|
frcflags = FRC_BOLD;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(IS_SET(MODE_REVERSE)) {
|
if(IS_SET(MODE_REVERSE)) {
|
||||||
if(fg == &dc.col[defaultfg]) {
|
if(fg == &dc.col[defaultfg]) {
|
||||||
|
|
Loading…
Reference in a new issue