Re: [hackers] Re: [st] Patch: XftFontOpenPattern failure

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri, 15 Sep 2017 11:29:25 +0200

On Thu, Sep 14, 2017 at 04:44:46PM -0400, Gary Allen Vollink wrote:
> Emg in IRC suggested an attachment version.
>
> On Thu, Sep 14, 2017 at 4:13 PM, Gary Allen Vollink <gary_AT_vollink.com> wrote:
> > ---
> > x.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/x.c b/x.c
> > index fbfd350..08a2bc1 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;
> >
> > --
> > 2.11.0 (Apple Git-81)

Thanks for making the patch!. I hope it resolves the crashes some other people
experienced aswell.

I've made a minor whitespace edit in your patch.

-- 
Kind regards,
Hiltjo
Received on Fri Sep 15 2017 - 11:29:25 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 15 2017 - 11:37:07 CEST