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 | |
parent | b2ac91775302fa4b8ce462a6e7bcfffa93923471 (diff) | |
download | st-b1338e91ed632adbcd08388de37e46cf25326e01.tar.gz st-b1338e91ed632adbcd08388de37e46cf25326e01.zip |
Add an error for XftFontOpenPattern failure.
-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 | |||
1092 | 1092 | ||
1093 | frc[frclen].font = XftFontOpenPattern(xw.dpy, | 1093 | frc[frclen].font = XftFontOpenPattern(xw.dpy, |
1094 | fontpattern); | 1094 | fontpattern); |
1095 | if (!frc[frclen].font) | ||
1096 | die("XftFontOpenPattern failed seeking fallback font: %s\n", | ||
1097 | strerror(errno)); | ||
1095 | frc[frclen].flags = frcflags; | 1098 | frc[frclen].flags = frcflags; |
1096 | frc[frclen].unicodep = rune; | 1099 | frc[frclen].unicodep = rune; |
1097 | 1100 | ||