Fonts created with createFont have never been freed until JRE exit although in 1.5 code was added that was supposed to allow this and use the "2D disposer" mechanism once the font became unreferenced to free the native resources (ie temporary file) created. Unfortunately the disposer record keeps a strong reference to the Font (actually the Font2D) itself due to making the disposer class a non-static nested (inner) class of the Font2D subclass and so implicitly it has a reference to its enclosing instance.
|