From: Sergey Matveev Date: Sat, 23 May 2020 11:17:48 +0000 (+0300) Subject: Coloured italics X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=37428a9a0227c9e54f1cded64e68ae3509af07d0;p=st.git Coloured italics --- 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; }