[squeak-dev] The Trunk: Morphic-mt.1928.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Mar 7 10:33:05 UTC 2022
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1928.mcz
==================== Summary ====================
Name: Morphic-mt.1928
Author: mt
Time: 7 March 2022, 11:32:59.261569 am
UUID: b744f763-6518-bf43-8ffb-3324ea8141c3
Ancestors: Morphic-mt.1927
In the font chooser, inform the user why a custom point size is not available for pre-rendered fonts.
Thanks to Lauren (lrnp) for the tip!
=============== Diff against Morphic-mt.1927 ===============
Item was changed:
----- Method: FontChooserTool>>selectedFont (in category 'font list') -----
selectedFont
"Generate missing pointSIze only if TrueType font."
| style |
^ (style := self selectedTextStyle) isTTCStyle
ifTrue: [ style fontArray size = 1 "Font not yet installed..."
ifTrue: [style defaultFont]
ifFalse: [TTCFont familyName: self selectedFontFamily pointSize: pointSize emphasized: emphasis]]
ifFalse: [
| font |
font := (style fontOfPointSize: pointSize) emphasized: emphasis.
+ pointSize ~= font pointSize ifTrue: [
+ self inform: ('The point size you requested is not available for this pre-rendered font. Please choose a TrueType font, where you can add custom point sizes.' translated withNoLineLongerThan: 45).
+ pointSize := font pointSize].
- pointSize := font pointSize. "Can be different for StrikeFont."
self changed: #selectedPointSizeIndex.
font]!
More information about the Squeak-dev
mailing list
|