RE: [Pollock] Setting font for TextEdit control

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

RE: [Pollock] Setting font for TextEdit control

Boris Popov, DeepCove Labs (SNN)
Error: Unable to parse message due to missing start tag for </end rant>.

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.
 

> -----Original Message-----
> From: Michael Lucas-Smith
> [mailto:[hidden email]]
> Sent: Thursday, February 23, 2006 3:43 PM
> To: Carl Gundel
> Cc: 'Vwnc'
> Subject: Re: [Pollock]Setting font for TextEdit control
>
> Welcome to VisualWorks fonts where this is -not- easy to do.
>
> What I'd like is a simple font/font: interface where I can
> simply give the various widgets a font I want them to use.
> Unfortunately, this apparently isn't possible in Pollock right now.
>
> The reason is, Pollock uses the various Scanner classes that
> come with Wrappers to do vertical text orientation,
> horizontal spacing and even wrapping.
>
> These scanners are hard coded to use the TextAttribute
> classes. These classes are an abomination until mankind. But,
> basically, what you need to do is make yourself a
> TextAttribute instance and you can give
> -that- to the TextEdit.
>
> Needless to say, WithStyle does -not- do this. Nor does
> WithStyle use those horrible Scanners.
>
> Sam has promised that in the next one or two projects this
> area will be completely rewritten so we can just give the
> widget the desired font. *fingers crossed*
>
> </end rant>
>
> Cheers,
> Michael
>
> > I'd really like to set the font on a Pollock TextEdit to courier or
> > some other monospaced terminal font.  I'm used to VisualSmalltalk
> > where this is really easy to do, but I couldn't figure out how this
> > works in VW and Pollock.  Anyone have a quick pointer?
>
> > Thanks!
>
> > -Carl Gundel, author of Liberty BASIC
> > http://www.libertybasic.com
>
>

smime.p7s (4K) Download Attachment