Subject: Re: bug#18501: Acknowledgement (24.3.93; OS X; crash in free() when calling macfont_close())

From: Dmitry Antipov <[email-masked]>
Date: Sun, 21 Sep 2014 09:03:55 +0400

On 09/21/2014 02:08 AM, Jim Radford wrote:

> I'm curious, why not just let the GC clean up the fonts in all cases?

This should be possible, but probably requires a substantial rewrite
of font.c and type-specific font drivers (xfont.c, w32font.c, etc).

Initially font cleanup at GC was introduced as a workaround for some
flaws in current font management subsystem.  See
http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00740.html

> Wouldn't they then also stay cached across frame-create /
> frame-delete?

This should be possible too, but it's hard to say whether it's really
worth doing.  I just don't see a usage pattern where frames are created
and deleted often enough so any caching makes sense.

Dmitry