Bert Freudenberg uploaded a new version of TrueType to project The Trunk:
http://source.squeak.org/trunk/TrueType-enno.9.mcz==================== Summary ====================
Name: TrueType-enno.9
Author: enno
Time: 13 September 2009, 5:33:25 am
UUID: c5f974ba-96fc-014c-82cf-1703c7165a52
Ancestors: TrueType-ar.8
incorporates typo fix from
http://code.google.com/p/pharo/issues/detail?id=1045into trunk
=============== Diff against TrueType-ar.8 ===============
Item was changed:
----- Method: TTFontReader class>>installTTF:asTextStyle:sizes: (in category 'instance creation') -----
installTTF: ttfFileName asTextStyle: textStyleName sizes: sizeArray
"Sizes are in pixels."
"TTFontReader
installTTF: 'F:\fonts\amazon:=:=.TTF'
asTextStyle: #Amazon
sizes: #(24 60)"
| ttf fontArray |
ttf := self parseFileNamed: ttfFileName.
fontArray := sizeArray collect:
[:each |
(ttf asStrikeFontScale: each / ttf unitsPerEm)
name: textStyleName;
+ pointSize: each].
- pixelSize: each].
TextConstants at: textStyleName asSymbol put: (TextStyle fontArray: fontArray)!