Eli Zaretskii writes: >> From: npostavs@users.sourceforge.net >> Cc: 23386@debbugs.gnu.org, Eli Zaretskii >> Date: Sat, 09 Jul 2016 16:02:30 -0400 >> >> > Here is a patch that attempts to fix the issue by resetting the font >> > after the backend is changed. It does let Emacs successfully open the >> > frame with the new font (no funny box characters in the modeline), but >> > I'm not sure if it's the best way of marking the font object invalid. >> >> Definitely not the best way: it causes segfault on delete-frame. > > Backtrace from that segfault? Hmm, looks like I just tried to kill the font twice, adding a NULL check fixes it.