Subject: Re: bug#39133: 28.0.50; Emacs slowdown on special char

From: Eli Zaretskii <[email-masked]>
Date: Fri, 24 Jan 2020 15:40:19 +0200

> From: Robert Pluim <[email-masked]>
> Cc: [email-masked],  [email-masked],
>   [email-masked],  [email-masked]
> Date: Fri, 24 Jan 2020 14:09:22 +0100
> 
>     >> Rather than duplicate that code, I moved the FONT_INVALID_CODE check
>     >> up. This works for me:
> 
>     Eli> Looks reasonable, thanks.
> 
> Except it crashes under -nw.

Yes, because the call to the font driver should only be done when
'font_object' is a font object (it isn't on TTY frames).  Otherwise,
simply assign FONT_INVALID_CODE to 'code'.