TextConstants
Last updated at 1:54 pm UTC on 16 January 2006
TextConstants is a global variable. It contains among other constants the TextConstantss installed in the image.
To obtain a dictionary with just the TextStyles copy the code below into a Workspace and evaluate it
styles _ TextConstants select: [:value | value isKindOf: TextStyle].
(This applies to a pre-modules version of Squeak)
To print out a list of the installed fonts:
styles do: [ :ts | Transcript show: ts fontNamesAndSizes printString, ' '. Transcript cr]