diff options
author | Gary Allen Vollink <gary@vollink.com> | 2017-09-14 15:30:02 -0400 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2017-09-15 11:27:13 +0200 |
commit | b1338e91ed632adbcd08388de37e46cf25326e01 (patch) | |
tree | 99adf300cb4f97598971ebf66c0addd94039a982 | |
parent | b2ac91775302fa4b8ce462a6e7bcfffa93923471 (diff) |
Add an error for XftFontOpenPattern failure.
-rw-r--r-- | x.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |