X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=x.c;h=191e5dc7a4652088c878dab30375ff33b08cf93d;hb=b1338e91ed632adbcd08388de37e46cf25326e01;hp=743b084b0108d0686921f2cf82cbf7950571489c;hpb=e7ed326d2e914a57017c9f34459824614075519b;p=st.git diff --git a/x.c b/x.c index 743b084..191e5dc 100644 --- a/x.c +++ b/x.c @@ -1092,6 +1092,9 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x frc[frclen].font = XftFontOpenPattern(xw.dpy, fontpattern); + if (!frc[frclen].font) + die("XftFontOpenPattern failed seeking fallback font: %s\n", + strerror(errno)); frc[frclen].flags = frcflags; frc[frclen].unicodep = rune; @@ -1285,6 +1288,8 @@ xdrawcursor(void) xdrawglyph(og, oldx, oldy); g.u = term.line[term.c.y][term.c.x].u; + g.mode |= term.line[term.c.y][term.c.x].mode & + (ATTR_BOLD | ATTR_ITALIC | ATTR_UNDERLINE | ATTR_STRUCK); /* * Select the right color for the right mode.