all repos — st @ 2aefa348baf4b702fdce98eb105bcba175d8283f

st (suckless terminal) config

make underlines and strikethroughs respect `chscale`
Zacchary Dempsey-Plante zacc@ztdp.ca
commit

2aefa348baf4b702fdce98eb105bcba175d8283f

parent

e823e2308f2a99023032a3966ebb7036a31d305f

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

jump to
M x.cx.c

@@ -1493,12 +1493,12 @@ XftDrawGlyphFontSpec(xw.draw, fg, specs, len);

/* Render underline and strikethrough. */ if (base.mode & ATTR_UNDERLINE) { - XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent + 1, + XftDrawRect(xw.draw, fg, winx, winy + dc.font.ascent * chscale + 1, width, 1); } if (base.mode & ATTR_STRUCK) { - XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent / 3, + XftDrawRect(xw.draw, fg, winx, winy + 2 * dc.font.ascent * chscale / 3, width, 1); }