Marcel Taeumel uploaded a new version of ReleaseBuilder to project The Trunk:
http://source.squeak.org/trunk/ReleaseBuilder-mt.197.mcz==================== Summary ====================
Name: ReleaseBuilder-mt.197
Author: mt
Time: 20 August 2019, 5:35:10.259293 pm
UUID: 82a71aeb-9ab0-2642-8be6-8adb399c7a01
Ancestors: ReleaseBuilder-mt.196
When building the release, remove all TrueType fonts except for Bitstream Vera (Sans/Sans Mono/Serif).
Note that this finally fixes emphasis codes for Bitstream Vera, which you can see in Etoys.
Note that this does not touch the Comic-Sans hack in TextConstants.
=============== Diff against ReleaseBuilder-mt.196 ===============
Item was added:
+ ----- Method: ReleaseBuilder class>>cleanUpBitstreamVeraSans (in category 'scripts - support') -----
+ cleanUpBitstreamVeraSans
+
+ | descriptions |
+ descriptions := Dictionary new.
+
+ TTFontDescription allInstancesDo: [:tt |
+ (tt familyName beginsWith: 'Bitstream Vera')
+ ifTrue: [(descriptions at: tt name ifAbsentPut: [Set new]) add: tt]].
+
+ TTCFont registry removeAll.
+ TTFontDescription clearDefault; clearDescriptions.
+
+ descriptions keysAndValuesDo: [:name :tts |
+ TextConstants removeKey: name ifAbsent: [].
+ tts do: [:ea | TTFontDescription addToDescription: ea]].
+
+ TTFontDescription setDefault.
+
+ descriptions valuesDo: [:tts |
+ (FontImporterTool new importFontFamily: tts) in: [:textStyle |
+ TTCFont
+ register: textStyle fontArray
+ at: textStyle defaultFont name asSymbol]].!
Item was changed:
----- Method: ReleaseBuilder class>>clearCaches (in category 'scripts') -----
clearCaches
"Clear caches, discard unused references, free space."
+ self cleanUpBitstreamVeraSans.
- TTCFont registerAll.
StrikeFont initialize.
Smalltalk cleanUp: true.
self discardUserObjects.
MCFileBasedRepository flushAllCaches.
Environment allInstancesDo: [ : env | env purgeUndeclared ].
Undeclared removeUnreferencedKeys.
Smalltalk garbageCollect.!