Hi,
 
> From: Simon.Denier@inria.fr
> To: pharo-project@lists.gforge.inria.fr
> Date: Thu, 2 Jul 2009 12:08:16 +0200
> Subject: [Pharo-project] Fonts directory necessary in pharo-dev
>
> Hi
>
> I juste downloaded the latest pharo 10342 and I noticed that if I
> remove the Fonts folder, it does not look for DejaVu fonts already
> installed on my MacOs system. Instead I got crappy fonts.
>
> Is this a known bug?

This is because the automatic search for fonts at image startup was removed.
If you click the update button on a font chooser, or evaluate ...
 
FreeTypeFontProvider current updateFromSystem
 
in a workspace, then it should find the fonts in your OS font folders and start using them immediately.
 
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!