The update is slow the first time it is run because it needs to 'look inside' each font file to extract the font name/style etc.
This information is then cached and used by subsequent updates.
Evaluating this twice ...
Time millisecondsToRun: [FreeTypeFontProvider current updateFromSystem]
gives 4075 for the first run, and 547 for the second run.
The cache is internal to the image, and so will be lost if the image isn't saved.
One possibility would be to save the cache to disk, and load it again on startup.
I believe that something similar to this was done in Sophie.
I have some code for doing this but I haven't had time to complete it.
Cheers,
Andy
>
> --
> Simon
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
>
Pharo-project@lists.gforge.inria.fr>
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
View your Twitter and Flickr updates from one place �
Learn more! _______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.frhttp://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project