[squeak-dev] The Trunk: TrueType-enno.9.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Sep 13 15:41:45 UTC 2009


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=1045
into 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)!




More information about the Squeak-dev mailing list