From e26d980eb7b94cf861b993c2e084f58066a45337 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 23 May 2020 14:17:48 +0300 Subject: [PATCH] Coloured italics --- x.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/x.c b/x.c index bd23686..4ef3fde 100644 --- a/x.c +++ b/x.c @@ -1381,12 +1381,7 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i XRenderColor colfg, colbg; XRectangle r; - /* Fallback on color display for attributes not supported by the font */ - if (base.mode & ATTR_ITALIC && base.mode & ATTR_BOLD) { - if (dc.ibfont.badslant || dc.ibfont.badweight) - base.fg = defaultattr; - } else if ((base.mode & ATTR_ITALIC && dc.ifont.badslant) || - (base.mode & ATTR_BOLD && dc.bfont.badweight)) { + if (base.mode & ATTR_ITALIC) { base.fg = defaultattr; } -- 2.44.0