On Aug 3, 2011, at 1:16 07PM, Hilaire Fernandes wrote: > I have found a difference of about 5Mb whether I install or not some > DejaVu fonts: > > ----------------------- > Gofer new > url: 'http://www.squeaksource.com/DejaVu'; > package: 'DejaVuBitmapFonts'; > load. > > ScriptLoader new cleanUpForProduction. > > DejaVuHolder installSizes: #(10 12). > StandardFonts setDefaultFonts: #( > (codeFont: 'Bitmap DejaVu Sans Regular' 12) > (listFont: 'Bitmap DejaVu Sans Regular' 12) > (menuFont: 'Bitmap DejaVu Sans Regular' 12) > (windowTitleFont: 'Bitmap DejaVu Sans Regular' 12) > (balloonFont: 'Bitmap DejaVu Sans Regular' 10) > (haloFont: 'Bitmap DejaVu Sans Regular' 10) > (buttonFont: 'Bitmap DejaVu Sans Regular' 12) > (defaultFont: 'Bitmap DejaVu Sans Regular' 12)). > ----------------------- > > 5Mb seems a lot for two sizes font, even if it comes with Bitmaps. Is it > correct or are there some clean up I can do in the fonts? > > Hilaire > The package holds source bitmaps for ALL sizes. Cean up after you have installed the ones you want by unloading DejaVuBitmapFonts again.
You can also save more space by removing StrikeFont dejaVuSans... methods, which are sources for the 3 already installed sizes. This should probably be the job of a #cleanup: true method on StrikeFont though. (which is called by cleanupForProduction) Cheers, Henry
