TTFontReader
Last updated at 1:54 pm UTC on 16 January 2006
If you open an TrueType file (example c:\windows\fonts\arial.ttf) in a file list browser the following code is evaluated
(TTFontReader parseFileNamed: 'c:\windows\fonts\arial.ttf') asMorph open
The expression
(TTFontReader parseFileNamed: 'c:\windows\fonts\arial.ttf')
returns an object of the class TTFontReader.
The message 'asMorph' opens a morph which displays the character
table and the font name.
TTFontReader installTTF: aPathAndFileNameOfaTTFfile asTextStyle: #FontName sizes: #(12 14 16 18 20 24)
will install a truetype font from your hard-drive converted to StrikeFont.