Marcel Taeumel uploaded a new version of TrueType to project The Trunk:
http://source.squeak.org/trunk/TrueType-mt.65.mcz
==================== Summary ====================
Name: TrueType-mt.65
Author: mt
Time: 6 February 2022, 9:49:42.289117 am
UUID: c10c4627-e035-e343-a04d-498ec187e7cd
Ancestors: TrueType-mt.64
Adds protocol to inspect the unmapped glyph indexes in a TTFontDescription. Useful for debugging encoding issues, e.g., in TTFontReader>>#processCharMap:.
=============== Diff against TrueType-mt.64 ===============
Item was added:
+ ----- Method: TTFontDescription>>atGlyphIndex: (in category 'accessing') -----
+ atGlyphIndex: anInteger
+ "Answers the glyph at its original index."
+
+ ^ glyphs
+ at: anInteger + 1
+ ifAbsent: []!
Item was added:
+ ----- Method: TTFontDescription>>maxGlyphIndex (in category 'accessing') -----
+ maxGlyphIndex
+
+ ^ glyphs size - 1!
Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.476.mcz
==================== 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') -----
fixSubstitutionCharacter
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 := $?].
self
assert: [baseFont hasGlyphOf: substitutionCharacter]
description: 'Could not find a possible substitution character and font!!'.!