]> 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>
Fri, 5 Apr 2024 11:57:27 +0000 (14:57 +0300)
x.c

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