The Trunk: Graphics-tpr.400.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-tpr.400.mcz

commits-2
tim Rowledge uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-tpr.400.mcz

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

Name: Graphics-tpr.400
Author: tpr
Time: 23 July 2018, 11:09:20.311791 am
UUID: 83d0ab30-01d7-4753-9fee-577471f5cd22
Ancestors: Graphics-eem.399

Update the font summary string to a Text with appropriate font settings that match the name of the font being described.
It doesn't show up in the help browser correctly because of problems as described in http://forum.world.st/Improving-SqueakToolsHelp-class-fontSizeSummary-reveals-problems-in-Text-styles-tp5081938.html
When we fix that, the fonts summary will magically look better.

=============== Diff against Graphics-eem.399 ===============

Item was changed:
  ----- Method: TextStyle class>>fontSizeSummaryContents (in category 'utilities') -----
  fontSizeSummaryContents
 
+ ^ Text streamContents:
- ^ String streamContents:
  [:aStream |
  self knownTextStyles do: [:aStyleName |
  aStream nextPutAll:
+ (aStyleName  asText addAttribute: (TextFontReference toFont: (TextStyle named: aStyleName) defaultFont)), '  ',
- aStyleName, '  ',
  (self fontPointSizesFor: aStyleName) asArray storeString.
  aStream cr]].!