[A] How to unload a TrueType font

Ned Konz ned at squeakland.org
Sun Jun 13 22:39:38 UTC 2004


On Sunday 13 June 2004 3:18 pm, Yoshiki Ohshima wrote:
>   Martin,
>
> > 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?
>
>   I wonder if "TTCFont class>>removeStyleName:" does the trick?

Almost. I've got some fixes for this, but I'm really busy right now.

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list