Add an error for XftFontOpenPattern failure. - st - Personal fork of st
 (HTM) git clone git://git.drkhsh.at/st.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b1338e91ed632adbcd08388de37e46cf25326e01
 (DIR) parent b2ac91775302fa4b8ce462a6e7bcfffa93923471
 (HTM) Author: Gary Allen Vollink <gary@vollink.com>
       Date:   Thu, 14 Sep 2017 15:30:02 -0400
       
       Add an error for XftFontOpenPattern failure.
       
       Diffstat:
         M x.c                                 |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git 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;