Accuny was not fully removed in my previous try (was still referenced by TextConstants). After deeper cleaning and loading of the dejaVu font without the 5, 6 and 7 sizes -> 14.0 Mo. The size was of 13.2 Mo before the cleaning, so, I guess that the price is of 0.8 Mo. Here is what I've done: ------- Before: World removeAllMorphs. StrikeFont cleanUp. ScriptLoader new cleanUpForRelease. -> 13.2 Mo Then: World removeAllMorphs. StrikeFont cleanUp. DejaVuHolder cleanUpForRelease. StandardFonts setFontsFromSpec: #( #(#defaultFont: 'Bitmap DejaVu' 9 ) #(#codeFont: 'Bitmap DejaVu' 9 ) #(#listFont: 'Bitmap DejaVu' 9 ) #(#menuFont: 'Bitmap DejaVu' 9 ) #(#windowTitleFont: 'Bitmap DejaVu' 12 ) #(#balloonFont: 'Bitmap DejaVu' 10 ) #(#haloFont: 'Bitmap DejaVu' 10 ) #(#buttonFont: 'Bitmap DejaVu' 9 ) ). StrikeFont class removeCategory: #'*Graphics-Resources'. TextConstants removeKey: #Accuny. TextConstants removeKey: #'Bitmap DejaVu Sans'. TextConstants at: #DefaultFixedTextStyle put: (TextConstants at: #'Bitmap DejaVu'). TextConstants at: #DefaultMultiStyle put: (TextConstants at: #'Bitmap DejaVu'). StrikeFont cleanUp. ScriptLoader new cleanUpForRelease. SmalltalkImage current garbageCollectMost. ------ After that, there was still an old text style referenced by the ParagraphEditor UndoParagraph class variable. I've cleaned it by setting UndoParagraph to nil from an inspector. Cheers Alain Le 23/09/2010 09:40, Alain Plantec a écrit :
Le 23/09/2010 09:17, Stéphane Ducasse a écrit :
Yes I think that we should just get better at packaging/loading.... But this package is important so it should be a supported package.
Stef
Concerning the size issue: On a fresh image: after a cleanUpForRelease -> 13.4 Mo
Then, I've load the full dejaVu font and I've removed the old accuny one, also removed old dejaVu (the current one with 3 sizes), cleaned StrikeFont class then cleanUpForRelease -> 14.1 Mo
In this image, only one dejaVu font with all sizes, so that standard and demo mode are working. Of course we can also remove small sizes (maybe 5, 6 and 7) to decrease the size more.
Cheers Alain