[Q] How to unload a TrueType font
martin.drautzburg at web.de
Fri Jun 11 16:43:12 UTC 2004
"Boris Gaertner" <Boris.Gaertner at gmx.net> writes:
> TextConstants keys
> select: [:key | (TextConstants at: key) class = TextStyle]
> This answers a Set with the names of all installed fonts.
> Here you should find what you installed. To remove it,
> simply evaluate
> TextConsants removeKey: <aSymbol>
Thanks, this does most of the trick except one Font (MusiTone) does
not seem to get garbage collected. When is explore objects pointing to
it I see a TextStyle. TextStyle allInstances also shows a MusiTone
TextStyle, but it is not in the TextConstants (TextConstants select:
[:each| each class = TextStyle]).
When I follow objects ponting to this TextStyle I only see an
"anInspector". I believe this is me. But why doesn't the
TextStyle->Font get garbage collected?
More information about the Squeak-dev