[Pkg] The Trunk: Graphics-nice.417.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Sep 14 12:53:02 UTC 2019


Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.417.mcz

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

Name: Graphics-nice.417
Author: nice
Time: 14 September 2019, 2:51:11.988479 pm
UUID: b18fb665-16a8-dc49-b959-43c97f588240
Ancestors: Graphics-nice.416

Revise the change from Graphics-ct.414

A FixedFaceFont displays a single character (the substitutionCharacter).

So we must protect against missing substitutionCharacter in baseFont, rather than original character.

=============== Diff against Graphics-nice.416 ===============

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



More information about the Packages mailing list