Help with textmorph

ducasse ducasse at iam.unibe.ch
Fri Feb 20 21:07:04 UTC 2004


Thanks ken

But when I have a TextMorph I can select part of it and change the 
fonts. So this should be possible.
I cannot believe this is not possible.

By the way the interfaces and realtionships between strikeFont and 
TextStyle are really not well defined.
It would be good that somebody understanding that propose some cleans.

Stef

On 20 févr. 04, at 21:54, Ken Causey wrote:

> Near the bottom of the class comment for TextMorph it notes that a
> TextMorph text can only contain a single font.  I think you might have
> more luck with PluggableTextMorph.  Alternatively just have a seperate
> morph for each font.
>
> Ken
>
> On Fri, 2004-02-20 at 14:42, ducasse wrote:
>> hi all
>>
>>
>> I would like to have a textMorph (if you have soemthing better please
>> say it)
>> that contains different fonts.
>>
>> I tried
>> TextMorph new openInWorld;  string: 'JJLLJL' fontName: #Atlanta size:
>> 22 wrap: false
>> It works. What I do not succeed to do is to add another text with
>> another font.
>>
>> I tried
>> 	
>> 	fontName: #Atlanta size: 18.	
>> 	contents: 'stéphane in accuate18'
>> 	
>> So any help is really appreciated
>>
>> Stef




More information about the Squeak-dev mailing list