]> Sergey Matveev's repositories - st.git/commitdiff
Coloured italics
authorSergey Matveev <stargrave@stargrave.org>
Sat, 23 May 2020 11:17:48 +0000 (14:17 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 14 Apr 2025 09:38:27 +0000 (12:38 +0300)
x.c

diff --git a/x.c b/x.c
index d73152b5f07f811af386c183329f59d495300ab4..7b2a51868f199333c0b343c27c20759497fbbe93 100644 (file)
--- 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;
        }