Thanks Mike Can you enter a new bug entry else your contribution may get lost?
Stef On Mar 5, 2013, at 2:05 PM, "Müller, Mike" <[email protected]> wrote: > Hi Pharoers, > > thank you for your time. Here is something you may be interested in: > > Take the latest image or one-click, open settings browser and click on > "Export Settings" to persist them. > Then save or not and launch the image again. Exception when reading the > preferences from file. > You will further notice that the 2 of the 4 generated startup action files > are too large. (> 256kb) > > Reason: > SettingDeclaration>>startupAction stores some setting values as real thick > objects on disk. For example, it writes the standard font definitions as > Strike Font Instances, which breaks. > > Solution: > In Method "SettingDeclaration>>startupAction" replace "storeOn: s" with > "settingStoreOn: s" to write the correct startup action format. > > Error in consequence: > After applying this fix, you will notice another Exception during the Import, > the FreeTypeSystemSettings class wants a method called #noFt2Library:, here I > suggest to add that missing accessor with no action. Maybe someone can > refactor the (FreeTypeSystem)Settings to have a #readOnly setting which must > not be saved to disk. > > Attached are my 2 changes, after applying them, my image can read all the > settings back from the startup files. The startup files created are much > smaller (~8kb). > > This is not exactly clear: "Is every setting materialized from the startup > files indeed the original setting?". > That would be an interesting test case. > > Regards, > Mike > > <FreeTypeSystemSettings > class-noFt2Library.st><SettingDeclaration-startupAction.st>
