From 37428a9a0227c9e54f1cded64e68ae3509af07d0 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 d73152b..7b2a518 100644 --- a/x.c +++ b/x.c @@ -1384,12 +1384,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.48.1