Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Add an error for XftFontOpenPattern failure.
[st.git]
/
x.c
diff --git
a/x.c
b/x.c
index
fbfd350
..
191e5dc
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;