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 /x.c | |
parent | b2ac91775302fa4b8ce462a6e7bcfffa93923471 (diff) | |
download | st-b1338e91ed632adbcd08388de37e46cf25326e01.tar.gz st-b1338e91ed632adbcd08388de37e46cf25326e01.tar.bz2 st-b1338e91ed632adbcd08388de37e46cf25326e01.zip |
Add an error for XftFontOpenPattern failure.
Diffstat (limited to 'x.c')
-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; |