[squeak-dev] The Trunk: TrueType-mt.59.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jan 30 20:44:19 UTC 2022

Marcel Taeumel uploaded a new version of TrueType to project The Trunk:

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

Name: TrueType-mt.59
Author: mt
Time: 30 January 2022, 9:44:17.397064 pm
UUID: 11314af0-20e9-834f-b83d-7a66f37d12df
Ancestors: TrueType-mt.58

Make #widthOf: in TTCFont do the same things as StrikeFont does.

=============== Diff against TrueType-mt.58 ===============

Item was changed:
  ----- Method: TTCFont>>widthOf: (in category 'public') -----
  widthOf: aCharacter
  	"This method cannot use #formOf: because formOf: discriminates the color and causes unnecessary bitmap creation."
+ 	(self hasGlyphOf: aCharacter)
+ 		ifFalse: [^ self fallbackFont widthOf: aCharacter].
- 	(self hasGlyphOf: aCharacter) ifFalse: [
- 		(fallbackFont notNil and: [fallbackFont hasGlyphOf: aCharacter]) ifTrue:
- 			[^ fallbackFont widthOf: aCharacter].
- 		^ 1
- 	].
  	^(self formOf: aCharacter) width!

More information about the Squeak-dev mailing list