[squeak-dev] The Inbox: EToys-ct.389.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Mar 27 20:09:42 UTC 2020


Christoph Thiede uploaded a new version of EToys to project The Inbox:
http://source.squeak.org/inbox/EToys-ct.389.mcz

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

Name: EToys-ct.389
Author: ct
Time: 27 March 2020, 9:09:28.818235 pm
UUID: c1b11564-1d1d-504e-a35c-2a8c6f329db7
Ancestors: EToys-eem.388

Fix SyntaxMorph construction

If #fontToUseForSpecialWord: returns nil, StringMorph will raise a MNU.

=============== Diff against EToys-eem.388 ===============

Item was changed:
  ----- Method: SyntaxMorph>>fontToUseForSpecialWord: (in category 'alans styles') -----
  fontToUseForSpecialWord: aString
  
+ 	^(#('Yes' 'No' 'Test') includes: aString)
+ 		ifTrue: [StrikeFont familyName: 'Helvetica' size: 14]
+ 		ifFalse: [TextStyle defaultFont
+ 			"(StrikeFont familyName: 'ComicBold' size: 16)"
+ 			flag: #workaround "Need to find a substitute for Comic Sans"]!
- 	^(#('Yes' 'No' 'Test') includes: aString) ifTrue: [
- 		(StrikeFont familyName: 'Helvetica' size: 14)
- 	] ifFalse: [
- 		nil	"(StrikeFont familyName: 'ComicBold' size: 16)"
- 	]!



More information about the Squeak-dev mailing list