--- config.def.h | 2 +- st.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git config.def.h config.def.h index 32d107d..2e29064 100644 --- config.def.h +++ config.def.h _AT_@ -139,7 +139,7 @@ static unsigned int mousebg = 0; /* * Color used to display font attributes when fontconfig selected a font which - * doesn't match the ones requested. + * doesn't match the ones requested. Set this to 0 to disable this feature. */ static unsigned int defaultattr = 11; diff --git st.c st.c index d6fe58a..2ee04fa 100644 --- st.c +++ st.c _AT_@ -3824,10 +3824,10 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i /* 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) + if (defaultattr && (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)) { + } else if (defaultattr && ((base.mode & ATTR_ITALIC && dc.ifont.badslant) || + (base.mode & ATTR_BOLD && dc.bfont.badweight))) { base.fg = defaultattr; } -- 2.1.4Received on Thu Dec 15 2016 - 21:16:04 CET
This archive was generated by hypermail 2.3.0 : Thu Dec 15 2016 - 21:24:23 CET