]> git.armaanb.net Git - st.git/commitdiff
Add an error for XftFontOpenPattern failure.
authorGary Allen Vollink <gary@vollink.com>
Thu, 14 Sep 2017 19:30:02 +0000 (15:30 -0400)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 15 Sep 2017 09:27:13 +0000 (11:27 +0200)
x.c

diff --git a/x.c b/x.c
index fbfd35043b7652301079ce3ccfad2e7bcd698c2d..191e5dc7a4652088c878dab30375ff33b08cf93d 100644 (file)
--- 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;