quick question - fixed width font.

oxe sv04er502 at sneakemail.com
Tue Nov 2 18:21:36 UTC 2004


You are a prince among programmers, Doug. thanks.

I'd tried the fonts menu actually,
but was looking for keyword "Fixed".

BitstreamVeraSansMono looks fixed width,
but i'm going with Atlanta as it seems cleaner
and has the little left-arrow for underscore.


Doug Way dway-at-mailcan.com |squeak devlists| wrote:
> On Mon, 01 Nov 2004 15:41:41 -0800, "oxe" <sv04er502 at sneakemail.com>
>>is there an easy way to make the default font
>>for all my code browsers be fixed width ?
> 
> This one is partly covered in the Squeak FAQ:
> http://minnow.cc.gatech.edu/squeak/471
> 
> Anyway, go to the World menu - 'appearance' - 'system fonts' to set
> various fonts in the Squeak UI.  You'll see "code font" as one of the
> options, which is what you'll want to set the font in your code
> browsers.
> 
> After selecting "code font", you'll see the available fonts... you'll
> notice that "Atlanta", "Accumon" (a Monaco-like font), and
> "BitstreamVeraSansMono" (for Mono-spaced) all look like fixed-width
> fonts.

>>i'm a big fan of lining-up code like so:
>>red   := '1 0 0'.
>>green := '0 1 0'.
>>blue  := '0 0 1'.
>>
>>and with variable width fonts this is pretty much impossible.
> 
> 
> True.  It does seem that fixed-width fonts are something of a standard
> for editing code in most IDE's & editors.  However, I actually prefer
> variable-width fonts because you can fit ~30% more text on the screen
> with the same level of readability, and in my experience the situations
> where code can be usefully lined up are extremely rare (especially in
> Smalltalk).  Your mileage may vary. :)

huh! interesting.
i do mostly 3D & graphics programming, so there's fairly often
sets of 3 or 4 lines of code which do the same thing but to different
components of a vector or what have you.  it's so convenient to really
be able to glance at a set of lines and instantly see that they're
all doing the same thing without having to actually read each line.


>>i'm in squeak 3.6.
> Ooh, my advice above was for Squeak 3.7... I don't think Accumon or
> BitstreamVeraSansMono are available in 3.6.  However, Atlanta should be
> available.  So, give that a try.

The menu is a bit different than you described,
there is no 'code font' option, but the 'default text font' works fine.
Atlanta and BitstreamVeraSansMono are in 3.6, but i see no Accumon.


thanks again,

orion




More information about the Squeak-dev mailing list