Try
LogicalFont
familyName: 'Arial'
pointSize: 24
Regards, Gary
----- Original Message -----
From: "Igor Stasenko" <[email protected]>
To: "Pharo Development" <[email protected]>
Sent: Monday, October 17, 2011 1:19 PM
Subject: [Pharo-project] How to use freetype?
I feel a bit confused.
I want to do something as easy as:
font := Something fontByName: 'Arial'.
but the problem is that i cannot find anything like that in freetype.
There is
FreeTypeFontProvider fontFor: aLogicalFont familyName: familyName
but i puzzled, why it needs a logical font and why i should create it?
Is there a general way to programmatically say: give me font 'Arial' pt
size 9,
or nil, if font cannot be found?
--
Best regards,
Igor Stasenko.