[squeak-dev] The Trunk: Graphics-ar.149.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Sep 6 18:38:37 UTC 2010


Andreas Raab uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-ar.149.mcz

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

Name: Graphics-ar.149
Author: ar
Time: 6 September 2010, 11:37:34.185 am
UUID: d29c5a5d-eded-264f-b02c-517d592b6945
Ancestors: Graphics-ar.148

Fix a problem with setting up fallback fonts when Accuny has been unloaded.

=============== Diff against Graphics-ar.148 ===============

Item was changed:
  ----- Method: StrikeFont class>>defaultSized: (in category 'accessing') -----
  defaultSized: aNumber
  	| fonts f |
  	"This used to be the default textstyle, but it needs to be a StrikeFont and not a TTCFont and sometimes the default textstyle is a TTCFont.  So, we use a typical StrikeFont as the default fallback font."
+ 	fonts := (TextConstants at: #Accuny ifAbsent:[TextStyle default]) fontArray.
- 	fonts := (TextConstants at: #Accuny) fontArray.
  	f := fonts first.
  	1 to: fonts size do: [:i |
  		aNumber > (fonts at: i) height ifTrue: [f := fonts at: i].
  	].
  	^f
  !




More information about the Squeak-dev mailing list