[NEWBIE] Fonts/Sizes in Squeak
Bob Arning
arning at charm.net
Wed Dec 1 13:35:44 UTC 1999
On Tue, 30 Nov 1999 07:19:45 +0100 Udo Schneider <Udo.Schneider at homeaddress.de> wrote:
>a newbie question:
>
>How do I create a Text with different Fonts/Sizes
>in Squeak. I found classes for TextColor, TextKern etc.
>but nothing for TextSize or TextFont.
>
>Did I miss something?
The classes you are looking for are TextStyle (which is essentially a font family) and StrikeFont (which represents one size of a font and, possibly, emphasized variants of that size).
To change font and size through the UI, use cmd-k and cmd-shift-K.
To create the Text programmatically, check out users of TextFontReference, TextFontChange and TextStyle for examples.
Cheers,
Bob
More information about the Squeak-dev
mailing list
|