The Trunk: Graphics-ct.414.mcz

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

The Trunk: Graphics-ct.414.mcz

commits-2
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-ct.414.mcz

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

Name: Graphics-ct.414
Author: ct
Time: 11 September 2019, 9:43:19.859453 pm
UUID: 6b976373-34ba-f74e-98e2-a483f5990413
Ancestors: Graphics-mt.410

Fix an infinite loop in FixedFaceFont>>#widthOf:

Before this commit, FormSetFont example crashed your image.

=============== Diff against Graphics-mt.410 ===============

Item was changed:
  ----- Method: FixedFaceFont>>widthOf: (in category 'measuring') -----
+ widthOf: aCharacter
+ ^ (baseFont hasGlyphOf: aCharacter)
+ ifTrue: [baseFont widthOf: substitutionCharacter]
+ ifFalse: [1]!
- widthOf: aCharacter
- ^ baseFont widthOf: substitutionCharacter!