Tony Garnock-Jones uploaded a new version of TrueType to project The Trunk:
http://source.squeak.org/trunk/TrueType-tonyg.54.mcz==================== Summary ====================
Name: TrueType-tonyg.54
Author: tonyg
Time: 27 August 2020, 7:31:31.535357 pm
UUID: d4f009fe-48ef-40dc-9455-30140dfcbaf6
Ancestors: TrueType-mt.53
In order for pixelsPerInchChanged to properly rerender things, it seems the (previously-unused) functionality of flushCachedValues is required. So this change puts the functionality of flushCachedValues in flushCache, removes flushCachedValues (no callers in the trunk image), and alters pixelsPerInchChanged for TTCFont to call flushCache instead of recreateCache.
=============== Diff against TrueType-mt.53 ===============
Item was changed:
----- Method: TTCFont>>flushCache (in category 'initialize') -----
flushCache
"Flush the cache of this font"
+ cache := foregroundColor := colorToCacheMap := nil.
+
+ "Flush all values computed from ttcDescription and cached for speed"
+ height := ascent := descent := nil.!
- cache := foregroundColor := colorToCacheMap := nil.!
Item was removed:
- ----- Method: TTCFont>>flushCachedValues (in category 'private') -----
- flushCachedValues
- "Flush all values computed from ttcDescription and cached for speed"
- "TTCFont allInstancesDo:[:font| font flushCachedValues]"
- height := ascent := descent := nil.!
Item was changed:
----- Method: TTCFont>>pixelsPerInchChanged (in category 'notifications') -----
pixelsPerInchChanged
"The definition of TextStyle class>>pixelsPerInch has changed. Do whatever is necessary."
+ self flushCache!
- self recreateCache!