mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 23:25:59 +01:00
Add an error for XftFontOpenPattern failure.
This commit is contained in:
parent
b2ac917753
commit
b1338e91ed
1 changed files with 3 additions and 0 deletions
3
x.c
3
x.c
|
@ -1092,6 +1092,9 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
|
||||||
|
|
||||||
frc[frclen].font = XftFontOpenPattern(xw.dpy,
|
frc[frclen].font = XftFontOpenPattern(xw.dpy,
|
||||||
fontpattern);
|
fontpattern);
|
||||||
|
if (!frc[frclen].font)
|
||||||
|
die("XftFontOpenPattern failed seeking fallback font: %s\n",
|
||||||
|
strerror(errno));
|
||||||
frc[frclen].flags = frcflags;
|
frc[frclen].flags = frcflags;
|
||||||
frc[frclen].unicodep = rune;
|
frc[frclen].unicodep = rune;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue