It would be nice to add this code snippet to here: http://code.google.com/p/pharo/wiki/CodeSnippets

On Wed, Jul 8, 2009 at 11:46 AM, Tudor Girba <girba@iam.unibe.ch> wrote:
Hi again :),

Indeed, reinitializing the font system seems to have solved the problem:
FreeTypeFontProvider current updateFromSystem

Cheers,
Doru

---- font script ----
menuFont := LogicalFont
� � � � � � � �familyName: 'Helvetica Neue'
� � � � � � � �pointSize: 9
� � � � � � � �stretchValue: (LogicalFont stretchCondensed)
� � � � � � � �weightValue: (LogicalFont weightBold)
� � � � � � � �slantValue: (LogicalFont slantNormal).
titleFont := LogicalFont
� � � � � � � �familyName: 'Helvetica Neue'
� � � � � � � �pointSize: 14
� � � � � � � �stretchValue: (LogicalFont stretchCondensed)
� � � � � � � �weightValue: (LogicalFont weightBold)
� � � � � � � �slantValue: (LogicalFont slantNormal).
codeFont := LogicalFont familyName: 'Monaco' pointSize: 8.
defaultFont := LogicalFont familyName: 'Helvetica Neue' pointSize:
9.
Preferences setSystemFontTo: defaultFont.
Preferences setListFontTo: defaultFont.
Preferences setFlapsFontTo: menuFont.
Preferences setHaloLabelFontTo: defaultFont.
Preferences setMenuFontTo: menuFont.
Preferences setWindowTitleFontTo: titleFont.
Preferences setBalloonHelpFontTo: defaultFont.
Preferences setCodeFontTo: codeFont.
Preferences setButtonFontTo: defaultFont.
--------


On 8 Jul 2009, at 14:37, Tudor Girba wrote:

> Hi,
>
> I ran my usual font setting script (see below) on
> pharo0.1-10371dev09.07.1 and the fonts did not get set. I ran the same
> code on Pharo0.1Core-10371 and it worked.
>
> Any idea what is the difference between the dev and the core images
> regarding this issue? Is it because of some initialization of the font
> system?
>
> Cheers,
> Doru
>
>
> --
> www.tudorgirba.com
>
> "Problem solving should be concentrated on describing
> the problem in a way that is relevant for the solution."
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
www.tudorgirba.com

"There are no old things, there are only old ways of looking at them."




_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project