commit 2aefa348baf4b702fdce98eb105bcba175d8283f from: Zacchary Dempsey-Plante via: Hiltjo Posthuma date: Sun Mar 13 09:45:34 2022 UTC make underlines and strikethroughs respect `chscale` commit - e823e2308f2a99023032a3966ebb7036a31d305f commit + 2aefa348baf4b702fdce98eb105bcba175d8283f blob - cd96575be257240b094888f9ca2bbdaaa0e3792a blob + 2a3bd384c46560d5a1067c065efee4a3dc206f4b --- x.c +++ x.c @@ -1493,12 +1493,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Gly /* 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); }