[Pharo-dev] setting fonts in pharo 3.0

Esteban Lorenzano estebanlm at gmail.com
Fri Nov 1 17:36:09 EDT 2013

nothing changed, but there is a bug around that prevents the loading at startup (unless you do what Nicolas says). 
now, I'm on vacations and I will not have time to look at it until 18Nov+ :(


On Nov 1, 2013, at 5:58 PM, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:

> For me, enabling the Settings FreeType/update fonts at startup, saving then restarting the image did the trick
> 2013/11/1 Tudor Girba <tudor at tudorgirba.com>
> Hi,
> I am porting Moose to Pharo 3.0. I could get the image code to load rather painlessly, and that is great.
> The first thing I notice is that something changed in the font management: I cannot seem to be able to set non-bitmap fonts anymore. I also noticed that the base Pharo image does not come with the advertised non-bitmap fonts either.
> I am trying this:
> #('SourceCodeProRegular' 'SourceCodeProBold' 'SourceSansProRegular' 'SourceSansProBold') do: [ :each | 
> 		Gofer new 
> 			smalltalkhubUser: 'girba' project: 'FreeFonts';
> 			package: each;
> 			load.
> 		(Smalltalk at: each asSymbol) new install ].
> 	FreeTypeSystemSettings loadFt2Library: true.
> 	StandardFonts 
> 		setAllStandardFontsTo: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10);
> 		haloFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10);
> 		windowTitleFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 14);
> 		balloonFont: (LogicalFont familyName: 'Source Sans Pro' pointSize: 10);
> 		codeFont: (LogicalFont familyName: 'Source Code Pro' pointSize: 10)
> Could anyone point me in the right direction?
> Cheers,
> Doru
> -- 
> www.tudorgirba.com
> "Every thing has its own flow"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131101/90d21943/attachment-0002.html>

More information about the Pharo-dev mailing list