I use that in my startup script to set the font, dunno if it can help
FreeTypeSystemSettings loadFt2Library: true.
FreeTypeFontProvider current updateFromSystem.
StandardFonts defaultFont: (LogicalFont familyName: 'Lucida Grande' pointSize: 10) forceNotBold.
GraphicFontSettings resetAllFontToDefault.
StandardFonts codeFont: (LogicalFont familyName: 'Consolas' pointSize: 10)
Good luck,
Ben
On Jun 12, 2012, at 4:48 PM, Tudor Girba wrote:
> Hi,
>
> I am trying to set the fonts for settings using TrueType fonts programatically.
>
> An example script is:
> StandardFonts setDefaultFonts: #(
> (balloonFont: 'Helvetica' 10)
> (buttonFont: 'Helvetica' 12)
> (codeFont: 'Helvetica' 12)
> (haloFont: 'Helvetica' 10)
> (listFont: 'Helvetica' 12)
> (menuFont: 'Helvetica' 12)
> (defaultFont: 'Helvetica' 12)
> (windowTitleFont: 'Helvetica' 16))
>
>
> But, when I look in the Appearance system setting, I only see the DejaVu fonts. Also, when opening the font dialog, I can only select the DejaVu fonts.
>
> What am I doing wrong? (I am on Mac using the CogVM from 15 April 2012)
>
> Cheers,
> Doru
>
>
>
> --
> www.tudorgirba.com
>
> "Obvious things are difficult to teach."
>
>
>
>