Hi,
Here are a few enhancements for working with fonts in Squeak.
[Tested on the squeak image updated to #4441 available at ftp://st.cs.uiuc.edu/pub/Smalltalk/Squeak/.]
TextStyleChange
This is a simple file in that adds a TextAttribute subclass called TextStyleChange that enables applications to change the TextStyle on a run of text within a paragraph (instead of having to do it to the whole paragraph).
To download go here:
http://users.bestweb.net/~swerling/squeak/spsSqueakDocs.html#textStyleChange
FontManager
This changeset adds the ability to work with fonts that have not been installed into the Squeak image. You must keep a directory of StrikeFonts somewhere, and a file called fonts.ini in the Default directory. Useful if you wish to provide for your users a large number of useable fonts but do not wish those fonts installed in the image.
To get FontManager and an example fonts dir and fonts.ini, go here:
http://users.bestweb.net/~swerling/squeak/spsSqueakDocs.html#fontManager
ChooseFontDialog
This changeset provides a font dialog that looks like a "typical" font selector -- You choose the family, emphasis, and size, and it shows a preview. Two example uses are included: 1) The ability to use the dialog to set the default system font, and 2) The ability to change the font on a run of text in a text pane through the context menu.
To download the ChooseFontDialog changeset, go here:
http://users.bestweb.net/~swerling/squeak/spsSqueakDocs.html#fontDialog
PluggableCodeTextPane
A subclass of PluggableTextPane that automatically replaces underscore ( _ ) and caret ( ^) characters with graphic arrows without altering the original font. This functionality can be toggled off in a context menu. This way you don't have to alter fonts brought into squeak for developement, then alter them back for deployment. The fonts are only changed in the context you want them to be: when displaying Smalltalk code.
To download the PluggableCodeTextPane changeset, go here:
http://users.bestweb.net/~swerling/squeak/spsSqueakDocs.html#pluggableCodeTe...