aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Allen Vollink <gary@vollink.com>2017-09-14 15:30:02 -0400
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-09-15 11:27:13 +0200
commitb1338e91ed632adbcd08388de37e46cf25326e01 (patch)
tree99adf300cb4f97598971ebf66c0addd94039a982
parentb2ac91775302fa4b8ce462a6e7bcfffa93923471 (diff)
downloadst-b1338e91ed632adbcd08388de37e46cf25326e01.tar.gz
st-b1338e91ed632adbcd08388de37e46cf25326e01.tar.bz2
Add an error for XftFontOpenPattern failure.
-rw-r--r--x.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/x.c b/x.c
index fbfd350..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;