The Trunk: Collections-dtl.559.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-dtl.559.mcz

commits-2
David T. Lewis uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-dtl.559.mcz

==================== 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]))!