Skip to content

Commit

Permalink
workaround color glyph crash
Browse files Browse the repository at this point in the history
  • Loading branch information
sileht committed Nov 24, 2020
1 parent a2aaac3 commit 27eba7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1578,8 +1578,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
if (base.mode & ATTR_BOXDRAW) {
drawboxes(winx, winy, width / len, win.ch, fg, bg, specs, len);
} else {
FcBool b = FcFalse;
FcPatternGetBool(specs->font->pattern, FC_COLOR, 0, &b);
/* Render the glyphs. */
XftDrawGlyphFontSpec(xw.draw, fg, specs, len);
if (!b) {
XftDrawGlyphFontSpec(xw.draw, fg, specs, len);
}
}

/* Render underline and strikethrough. */
Expand Down

0 comments on commit 27eba7e

Please sign in to comment.