squeak - How do I make really large text in Smalltalk? -
i'm trying make large text banner in squeak smalltalk, following code:
t := textmorph new. t string: 'you win!' fontname: 'bitstreamverasans' size: 400. t extent: 600@100. t center: display center. t openinworld.
but text size seems max out @ 60. using wrong class? don't need text editable.
two ways:
add font size:
(textstyle named: #bitstreamverasans) addnewfontsize: 200
, use regular text morph before.use "truetype banner" can arbitrarily scaled: either 1 object catalog, or use
ttsamplestringmorph new initializetostandalone openinhand
. initializetostandalone method make own.
for large heading use
Comments
Post a Comment