[squeak-dev] The Trunk: Graphics-mt.451.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Dec 6 12:26:24 UTC 2021
Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.451.mcz
==================== Summary ====================
Name: Graphics-mt.451
Author: mt
Time: 6 December 2021, 1:26:15.957534 pm
UUID: 53f52e72-395b-c142-9f38-5560565a14c6
Ancestors: Graphics-mt.450
Fixes high-dpi scaling issues with password fonts.
=============== Diff against Graphics-mt.450 ===============
Item was added:
+ ----- Method: FixedFaceFont>>fontPointSize: (in category 'accessing') -----
+ fontPointSize: aNumber
+ self baseFont: (StrikeFont familyName: baseFont familyName pointSize: aNumber) copy!
Item was changed:
----- Method: FixedFaceFont>>initialize (in category 'initialize-release') -----
initialize
"This used to be the default textstyle, but it needs to be a StrikeFont and not a TTCFont and sometimes the default textstyle is a TTCFont. So, we use a typical StrikeFont as the default fallback font."
+ baseFont := TextStyle defaultFont.
- baseFont := StrikeFont defaultSized: 12.
self passwordFont!
Item was added:
+ ----- Method: StrikeFont class>>passwordFont (in category 'instance creation') -----
+ passwordFont
+
+ ^ self passwordFontPointSize: TextStyle defaultFont pointSize!
Item was added:
+ ----- Method: StrikeFont class>>passwordFontPointSize: (in category 'instance creation') -----
+ passwordFontPointSize: pointSize
+
+ ^ FixedFaceFont new passwordFont fontPointSize: pointSize!
More information about the Squeak-dev
mailing list
|