How to change font family on a run of text

Andreas Raab Andreas.Raab at gmx.de
Wed Oct 10 22:13:03 UTC 2001


Steve,

I don't see a reason why you couldn't have a TextFamily attribute - just try
it and see what happens ;-)

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org]On Behalf Of Steve
> Swerling
> Sent: Wednesday, October 10, 2001 2:50 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: How to change font family on a run of text
>
>
> I'm making a choose font dialog that lets you choose the family, size,
> and emphasis for a run of text. There's just one hitch left:
> I've hit a
> wall on setting the family on just the selected text -- it appears you
> have to set the textStyle globally for the whole paragraph.
>
> Is there a way to set the textStyle just for a given run within a
> NewParagraph? And if this is forbidden, why? Would it be reasonable to
> have a subclass of TextAttribute called TextFamily, or to
> have family be
> a slot of TextFontChange?
>
>
>





More information about the Squeak-dev mailing list