[Newbies] What is the regular way to create a StringMorph with a particular font size?

H. Hirzel hannes.hirzel at gmail.com
Mon Apr 10 10:29:30 UTC 2017


I am wondering how a short version of constructing a StringMorph with
a particular TextStyle looks like.

The version which is attached works fine.

The question is mainly

How do I replace

     (TextConstants at: #LiberationSans) fontArray at: 7

with something which directly refers to the point size?

And as a second question how do I get from the number of desired
screen pixels to the closest font size?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: LiberationSans60point.png
Type: image/png
Size: 21086 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20170410/c0519390/attachment-0001.png>

More information about the Beginners mailing list