summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-12-07 07:31:33 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-12-07 07:31:33 -0500
commitfd462708313c46f86024dee2857ede31e6cbb894 (patch)
tree66b9bef6ef437f3ad61fac7a645178e09460dc0c
parent131bdf67fda75365e289a2d76ab5c7b242d7fde2 (diff)
hack for font errors
-rw-r--r--x.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/x.c b/x.c
index c09392b..cc7a8a4 100644
--- 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) {