[Bug] TextMorph 'text color...' interface applies styletoentire
text not just selection
arning at charm.net
Sat Feb 22 00:54:22 UTC 2003
On 21 Feb 2003 17:33:56 -0600 Ken Causey <ken at kencausey.com> wrote:
>Ah thanks for this reply. I suspected that but then decided that I was
>wrong since the interface certainly implies that the text may be
>composed of mixed fonts. Rereading the class comment for Text now with
>this concept in mind I can see that implied but not explicitly stated.
>Am I to think then that changing the font number can only change the
Yes. TextMorph uses the TextFontChange attribute which selects one of the sizes from the single TextStyle that applies to the TextMorph. You can have more than one of these size changes in a TextMorph, so size changes are doable. To get fundamentally different fonts in a single TextMorph, one would need to use TextFontReference attributes which supply a font as well as a size.
More information about the Squeak-dev