I have profiled some Java software using heap heaps, and there are 350 instances of sun.font.TrueTypeFont, the other heap heaps that I picked up had more. There are only 5 font instances created by the application code, and a total of 24 instances, mostly created by WDesktopProperties and other classes in the Java library.
Is this number of TrueTypeFont instances typical of a fairly large desktop application? If so, why? FontManager takes up almost 200 KB of RAM!
Thanks,
Andy
Andy
source
share