[Newbies] What is the regular way to create a StringMorph with a particular font size?
hannes.hirzel at gmail.com
Mon Apr 10 11:11:10 UTC 2017
I had changed
"The default sizes that are created when a TextStyle is created.
You can add new sizes by the new-size feature."
^ #(9 12 15 24 36).
in my image _before_ importing a TrueType font.
"The default sizes that are created when a TextStyle is created. You
can add new sizes by the new-size feature."
^ #(9 12 15 24 36 48 60).
And the font loaded is LiberationSans
The Liberation Fonts are intended to be replacements
for the three most commonly used fonts on Microsoft systems:
- Times New Roman,
- Arial and
- Courier \ New.
On 4/10/17, H. Hirzel <hannes.hirzel at gmail.com> wrote:
> 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?
More information about the Beginners