[squeak-dev] The Trunk: Graphics-mt.459.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Jan 17 10:33:59 UTC 2022
Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.459.mcz
==================== Summary ====================
Name: Graphics-mt.459
Author: mt
Time: 17 January 2022, 11:33:37.407327 am
UUID: 3fa926e5-8cda-1b43-9b2f-a34cfcb6bb4a
Ancestors: Graphics-mt.458
Clean up #textStyle interface on all kinds of fonts.
=============== Diff against Graphics-mt.458 ===============
Item was changed:
----- Method: AbstractFont>>textStyle (in category 'accessing') -----
textStyle
+ "Answer an instance of TextStyle that (most likely) includes the receiver. Note that if the receiver is used in more than one style, only answer the most prominent one."
+
+ ^ self textStyleOrNil ifNil: [TextStyle fontArray: {self}]!
- ^ TextStyle actualTextStyles detect:
- [:aStyle | aStyle fontArray includes: self] ifNone: [ TextStyle fontArray: { self } ]!
Item was added:
+ ----- Method: AbstractFont>>textStyleOrNil (in category 'accessing') -----
+ textStyleOrNil
+ "Like #textStyle but avoid creating a new style for orphaned fonts."
+
+ ^ TextStyle named: self textStyleName!
Item was changed:
----- Method: StrikeFont>>textStyle (in category 'accessing') -----
textStyle
+ "Overwritten to not create a new style for orphaned fonts."
+
+ ^ self textStyleOrNil!
- ^ TextStyle actualTextStyles detect:
- [:aStyle | aStyle fontArray includes: self] ifNone: [nil]!
More information about the Squeak-dev
mailing list
|