RE: Fonts; syntax coloring; type annotations

"David Griswold" <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.strongtalk
Message-ID <[email protected]>

>From:  Shaping
> Hi.
>
> I'm trying to make Stronktalk more approachable, by changing the font
> to something bolder and monospaced.  I haven't so far been able to get
> any font changes to take effect.

I'm not sure why you would want a monospaced font, but please yourself.  The
reason your changes aren't taking effect is that the painters used to render
the programming environment are cached in class variables in class
ProgrammingEnvironment, so they are only built once (Painters hold the
graphics state for rendering).  Look at the methods in the instance category
'private-painters' in ProgrammingEnvironment.  If you set any of the class
variables in that class to nil (or just save and restart the image after
changing the font specification), that will cause the painter to be rebuilt
by the corresponding access method in that category.  Example: The class
variable CodePainter holds the painter for normal method code, and is
accessed and lazily initialized by the instance method 'codePainter'.

>Also, I want to port my
> formatter/colorizer from VW.  Has anyone done any work in this area
> yet?

Not that I know of.

> How do I temporarily swich off type annotations everywhere, without
> actually deleting them?

There isn't a way to do that right now, since we didn't see that as a
desirable feature (it would be like turning off comments- they make the code
easier to understand).

-Dave

>
> Shaping


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups "Strongtalk-general" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/strongtalk-general?hl=en
-~----------~----~----~----~------~----~------~--~---
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.