[Pkg] The Trunk: Collections-dtl.559.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jan 6 23:26:36 UTC 2014

David T. Lewis uploaded a new version of Collections to project The Trunk:

==================== Summary ====================

Name: Collections-dtl.559
Author: dtl
Time: 6 January 2014, 6:25:59.947 pm
UUID: a489f57a-b23a-4399-9089-bed7a27b9215
Ancestors: Collections-dtl.558

A font height may be either an integer or a float, so change TextFontReference class>>scanFrom: to accept either. This fixes an issue in RunArray class>>scanFrom: which relies on TextFontReference to read the numeric value of font height, which may have been specified as a float in the case of a TTCFont.

=============== Diff against Collections-dtl.558 ===============

Item was changed:
  ----- Method: TextFontReference class>>scanFrom: (in category 'fileIn/Out') -----
  scanFrom: strm
  	^self toFont: 
+ 		(StrikeFont familyName: (strm upTo: $#) size: (Number readFrom: strm ifFail: [0]))!
- 		(StrikeFont familyName: (strm upTo: $#) size: (Integer readFrom: strm ifFail: [0]))!

More information about the Packages mailing list