[squeak-dev] The Trunk: Tools-mt.1181.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jan 11 14:15:07 UTC 2023


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

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

Name: Tools-mt.1181
Author: mt
Time: 11 January 2023, 3:15:06.215326 pm
UUID: 6051744a-fa2b-ca42-a12d-d15ba3c5aae1
Ancestors: Tools-ct.1180

Treat Tools-kfr.1180: "Make sure inspected form is viewable in current display depth."

Make the conversion directly where FormSetFont is used, like in FileList >> #readGraphicContents.

I wonder whether the depth conversion should be done inside FormSetFont. Hmm... font rendering is still tricky.

=============== Diff against Tools-ct.1180 ===============

Item was changed:
  ----- Method: FormInspector>>embedForm:inText: (in category 'support') -----
  embedForm: aForm inText: stringOrText
  
  	^ stringOrText asText
  		, ((' (hash: {1})' translated format: {aForm bits hash})
  			flag: #workaround "ct: Currently, text equality ignores attributes. Add a hash of the form's bits to the text to ensure that it will be re-rendered in Morphic inspectors. In the long term, we should redefine Text >> #= instead. See: http://lists.squeakfoundation.org/pipermail/squeak-dev/2020-September/211358.html";
  			yourself)
  		, String cr
  		, (Text string: ' ' attribute:
  			(TextFontReference toFont: 
  				(FormSetFont new
+ 					fromFormArray: (Array with: ((aForm asFormOfDepth: Display depth) copy offset: 0 at 0))
- 					fromFormArray: (Array with: (aForm copy offset: 0 at 0))
  					asciiStart: Character space asInteger
  					ascent: aForm height)))!



More information about the Squeak-dev mailing list