A new version of Graphics was added to project The Inbox:
http://source.squeak.org/inbox/Graphics-mt.445.mcz==================== Summary ====================
Name: Graphics-mt.445
Author: mt
Time: 8 January 2021, 2:56:15.018507 pm
UUID: 66fc9fef-60ca-9e4f-b6f1-743c92f25e0f
Ancestors: Graphics-nice.444
Proposal. Adds #larger and #smaller to font objects. Just like color objects understand #ligher and #darker.
Examples:
TextStyle defaultFont smaller.
Preferences standardButtonFont larger.
=============== Diff against Graphics-nice.444 ===============
Item was added:
+ ----- Method: AbstractFont>>adjustPointSize: (in category 'transformations') -----
+ adjustPointSize: delta
+ "Implementation based on Preferences class >> #setDefaultFonts:"
+
+ ^ (((TextStyle named: self familyName) ifNil: [TextStyle default])
+ fontOfPointSize: self pointSize + delta)
+ emphasized: self emphasis!
Item was added:
+ ----- Method: AbstractFont>>larger (in category 'transformations') -----
+ larger
+
+ ^ self adjustPointSize: 3!
Item was added:
+ ----- Method: AbstractFont>>smaller (in category 'transformations') -----
+ smaller
+
+ ^ self adjustPointSize: -3!