Disable bold fonts

This commit is contained in:
Aaron Lindsay 2016-12-22 14:49:32 -05:00
parent 0bfde9df6d
commit f93f6d7bd9

4
st.c
View File

@ -3731,13 +3731,13 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
frcflags = FRC_NORMAL; frcflags = FRC_NORMAL;
runewidth = xw.cw * ((mode & ATTR_WIDE) ? 2.0f : 1.0f); runewidth = xw.cw * ((mode & ATTR_WIDE) ? 2.0f : 1.0f);
if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD)) { if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD)) {
font = &dc.ibfont; font = &dc.ifont;
frcflags = FRC_ITALICBOLD; frcflags = FRC_ITALICBOLD;
} else if (mode & ATTR_ITALIC) { } else if (mode & ATTR_ITALIC) {
font = &dc.ifont; font = &dc.ifont;
frcflags = FRC_ITALIC; frcflags = FRC_ITALIC;
} else if (mode & ATTR_BOLD) { } else if (mode & ATTR_BOLD) {
font = &dc.bfont; font = &dc.font;
frcflags = FRC_BOLD; frcflags = FRC_BOLD;
} }
yp = winy + font->ascent; yp = winy + font->ascent;