st

Luke's fork of the suckless terminal: vim-bindings, Xresrouces colors, transparency
Log | Files | Refs | README | LICENSE

commit fd462708313c46f86024dee2857ede31e6cbb894
parent 131bdf67fda75365e289a2d76ab5c7b242d7fde2
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat,  7 Dec 2019 07:31:33 -0500

hack for font errors

Diffstat:
Mx.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/x.c b/x.c @@ -1544,7 +1544,11 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i XftDrawSetClipRectangles(xw.draw, winx, winy, &r, 1); /* Render the glyphs. */ - XftDrawGlyphFontSpec(xw.draw, fg, specs, len); + FcBool b = FcFalse; + FcPatternGetBool(specs->font->pattern, FC_COLOR, 0, &b); + if (!b) { + XftDrawGlyphFontSpec(xw.draw, fg, specs, len); + } /* Render underline and strikethrough. */ if (base.mode & ATTR_UNDERLINE) {