all repos — st @ f8db65439a705f5e94c7a130ac44689e050e5654

st (suckless terminal) config

Fixing bold fonts in reverse mode.
Christoph Lohmann 20h@r-36.net
commit

f8db65439a705f5e94c7a130ac44689e050e5654

parent

76a8e5f72b542f230d7248c09efe202a12bc3771

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M st.cst.c

@@ -2398,9 +2398,6 @@ XftColor *fg = &dc.xft_col[base.fg], *bg = &dc.xft_col[base.bg],

*temp, revfg, revbg; XRenderColor colfg, colbg; - if(base.mode & ATTR_REVERSE) - temp = fg, fg = bg, bg = temp; - if(base.mode & ATTR_BOLD) { if(BETWEEN(base.fg, 0, 7)) { /* basic system colors */

@@ -2449,6 +2446,9 @@ XftColorAllocValue(xw.dpy, xw.vis, xw.cmap, &colbg, &revbg);

bg = &revbg; } } + + if(base.mode & ATTR_REVERSE) + temp = fg, fg = bg, bg = temp; XftTextExtentsUtf8(xw.dpy, font->xft_set, (FcChar8 *)s, bytelen, &extents);