[squeak-dev] The Trunk: Graphics-mt.476.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Feb 6 05:57:28 UTC 2022

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

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

Name: Graphics-mt.476
Author: mt
Time: 6 February 2022, 6:57:21.367117 am
UUID: 5a801a25-5571-f24d-96a5-23a578caa27f
Ancestors: Graphics-mt.475

Revises recent changes to configuration of FixedFaceFont as #fallbackFont. Start with code point 33 when looking for a possible substitution character in the baseFont bc. the glyph should be visible.

=============== Diff against Graphics-mt.475 ===============

Item was changed:
  ----- Method: FixedFaceFont>>fixSubstitutionCharacter (in category 'private') -----
  	substitutionCharacter ifNil: [^ self].
  	baseFont ifNil: [^ self].
  	(baseFont hasGlyphOf: substitutionCharacter) ifTrue: [^ self].
+ 	((baseFont minCodePoint max: 33) to: baseFont maxCodePoint)
- 	(baseFont minCodePoint to: baseFont maxCodePoint)
  		detect: [:codePoint | baseFont hasGlyphOf: (Character value: codePoint)]
  		ifFound: [:codePoint | substitutionCharacter := Character value: codePoint]
  		ifNone: [
  			baseFont := TextStyle defaultFont.
  			substitutionCharacter := $?].	
  		assert: [baseFont hasGlyphOf: substitutionCharacter]
  		description: 'Could not find a possible substitution character and font!!'.!

More information about the Squeak-dev mailing list