Is it possible to customize fonts in Shout?

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

Is it possible to customize fonts in Shout?

malex
Hi everyone.

  I'm a complete beginner in Squeak (with previous experience in Java) and I'm trying to set up a convenient development environment. After one day of pain (errors, package installs over and over again etc) the thing seems to work, highlights code and completes methods. The only thing I could not fix till now is the font Shout uses to render strings - it is possible to do that? If so how?
  Thanks a lot! :)
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to customize fonts in Shout?

Aaron Reichow
malex-

Short answer: Yeah, that is doable. But, unless you've just missed an  
option somewhere, it has to be done manually.

Long answer:  I don't know about Shout- I've never used it. But,  
there are Squeak apps that are a lot like any other GUI apps- when a  
ton of work hasn't been done on the GUI there is oftentimes a lack of  
customization.  In Squeak, sometimes an app that doesn't have a font  
customization option will honor the default text font, list font,  
etc. But other times, these apps do not.  It sounds like Shout is  
such an app.

Unless you just aren't looking well and you've missed a font setting,  
the only way it can be changed is by changing something in the  
source. Now, that sounds a lot worse than it is- fonts are pretty  
simple in Squeak.  But, if you don't know Smalltalk (yet!), don't  
know how or where to look, and aren't comfortable changing source  
even if you found it, it might sound a little scary.

I could help you with this possibly, depending on what we can  
arrange. Reply to me privately. Or, stop by the #squeak IRC chat  
channel- you can get to it via the site below.  I am on there as  
"rev", but if I'm not there you could always ask the channel in  
general, as there are often people willing to help.

http://www.bitquabit.com/rev/squeakChat/

Regards,
Aaron

On Nov 13, 2006, at 9:41 AM, malex wrote:

>
> Hi everyone.
>
>   I'm a complete beginner in Squeak (with previous experience in  
> Java) and
> I'm trying to set up a convenient development environment. After  
> one day of
> pain (errors, package installs over and over again etc) the thing  
> seems to
> work, highlights code and completes methods. The only thing I could  
> not fix
> till now is the font Shout uses to render strings - it is possible  
> to do
> that? If so how?
>   Thanks a lot! :)
> --
> View this message in context: http://www.nabble.com/Is-it-possible- 
> to-customize-fonts-in-Shout--tf2623064.html#a7319227
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to customize fonts in Shout?

Andrew Tween
In reply to this post by malex

"malex" <[hidden email]> wrote in message
news:[hidden email]...
>
> Hi everyone.
>
>   I'm a complete beginner in Squeak (with previous experience in Java) and
> I'm trying to set up a convenient development environment. After one day of
> pain (errors, package installs over and over again etc) the thing seems to
> work, highlights code and completes methods. The only thing I could not fix
> till now is the font Shout uses to render strings - it is possible to do
> that? If so how?

yes, it is.
In general, Shout uses the system-wide "code" font (please ask if you don't know
how to change this).

In earlier versions of Shout (which includes the latest published version on
SqueakMap), the font for literal Strings (e.g. myString := 'this is a literal
String'.), was set to always be 'Accuny'. This caused problems, and in the
latest version of Shout, the single code font is used for everything.

So, if you have changed the code font, and are seeing Strings with a different
font from other things, then you are using the older version of Shout, and the
easiest way of fixing this is to upgrade Shout to the latest version (which I
still haven't published on SqueakMap, so you will need to get it from
SqueakSource). The file is Shout.3.15-tween.65.mcz, please ask again if you
can't find it, or don't know how to install it.

If you wish to override the code font for certain syntax elements, or to change
the bold/italic/underline/color attributes for those elements, then you can edit
the SHTextStylerST80 class method - #defaultStyleTable. (You will then need to
evaluate - SHTextStylerST80 initialize - and open a new browser before the
changes will take effect).

I hope that helps,
Andy



>   Thanks a lot! :)
> --
> View this message in context:
http://www.nabble.com/Is-it-possible-to-customize-fonts-in-Shout--tf2623064.html#a7319227
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>
>




Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to customize fonts in Shout?

malex
Andrew,

  Thanks a lot! It worked! :)

  This piece of software is really invaluable for me as I've got used to syntax highlight since Borland IDE's. I really appreciate your work.

Andrew Tween wrote
"malex" <almaslov@yahoo.com> wrote in message
news:7319227.post@talk.nabble.com...
>
> Hi everyone.
>
>   I'm a complete beginner in Squeak (with previous experience in Java) and
> I'm trying to set up a convenient development environment. After one day of
> pain (errors, package installs over and over again etc) the thing seems to
> work, highlights code and completes methods. The only thing I could not fix
> till now is the font Shout uses to render strings - it is possible to do
> that? If so how?

yes, it is.
In general, Shout uses the system-wide "code" font (please ask if you don't know
how to change this).

In earlier versions of Shout (which includes the latest published version on
SqueakMap), the font for literal Strings (e.g. myString := 'this is a literal
String'.), was set to always be 'Accuny'. This caused problems, and in the
latest version of Shout, the single code font is used for everything.

So, if you have changed the code font, and are seeing Strings with a different
font from other things, then you are using the older version of Shout, and the
easiest way of fixing this is to upgrade Shout to the latest version (which I
still haven't published on SqueakMap, so you will need to get it from
SqueakSource). The file is Shout.3.15-tween.65.mcz, please ask again if you
can't find it, or don't know how to install it.

If you wish to override the code font for certain syntax elements, or to change
the bold/italic/underline/color attributes for those elements, then you can edit
the SHTextStylerST80 class method - #defaultStyleTable. (You will then need to
evaluate - SHTextStylerST80 initialize - and open a new browser before the
changes will take effect).

I hope that helps,
Andy



>   Thanks a lot! :)
> --
> View this message in context:
http://www.nabble.com/Is-it-possible-to-customize-fonts-in-Shout--tf2623064.html#a7319227
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>
>