[hackers] [st] Add an error for XftFontOpenPattern failure. || Gary Allen Vollink
commit b1338e91ed632adbcd08388de37e46cf25326e01
Author: Gary Allen Vollink <gary_AT_vollink.com>
AuthorDate: Thu Sep 14 15:30:02 2017 -0400
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Fri Sep 15 11:27:13 2017 +0200
Add an error for XftFontOpenPattern failure.
diff --git a/x.c b/x.c
index fbfd350..191e5dc 100644
--- a/x.c
+++ b/x.c
_AT_@ -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;
Received on Fri Sep 15 2017 - 11:28:06 CEST
This archive was generated by hypermail 2.3.0
: Fri Sep 15 2017 - 11:36:53 CEST