[Pkg] The Trunk: Graphics-mt.357.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Aug 2 12:17:39 UTC 2016


Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.357.mcz

==================== Summary ====================

Name: Graphics-mt.357
Author: mt
Time: 2 August 2016, 2:17:01.661941 pm
UUID: e1701760-a1c3-284e-982c-16f89ca08e75
Ancestors: Graphics-tfel.356

Move generic font size summary from Morphic into Graphics package.

=============== Diff against Graphics-tfel.356 ===============

Item was added:
+ ----- Method: TextStyle class>>fontSizeSummary (in category 'utilities') -----
+ fontSizeSummary
+ 	"Open a text window with a simple summary of the available sizes in each of the fonts in the system."
+ 
+ 	"TextStyle fontSizeSummary"
+ 
+ 	(StringHolder new contents: self fontSizeSummaryContents)
+ 		openLabel: 'Font styles and sizes' translated!

Item was added:
+ ----- Method: TextStyle class>>fontSizeSummaryContents (in category 'utilities') -----
+ fontSizeSummaryContents
+ 
+ 	^ String streamContents:
+ 		[:aStream |
+ 			self knownTextStyles do: [:aStyleName |
+ 				aStream nextPutAll:
+ 					aStyleName, '  ',
+ 					(self fontPointSizesFor: aStyleName) asArray storeString.
+ 				aStream cr]].!



More information about the Packages mailing list