The Inbox: EToys-ct.389.mcz

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

The Inbox: EToys-ct.389.mcz

commits-2
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)"
- ]!