--- st-undercurl-0.8.4-20210822.diff.orig 2022-10-05 19:36:59.378598561 -0700 +++ st-undercurl-0.8.4-20210822.diff 2022-10-05 19:37:34.102012806 -0700 @@ -247,7 +247,7 @@ /* 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); + // Underline Color + const int widthThreshold = 28; // +1 width every widthThreshold px of font .