On 9 February 2011 14:44, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
PharoCanvas>>drawString: aString from: firstIndex to: lastIndex at: aPoint font: fontOrNil color: c     | font |     port colorMap: nil.     font := fontOrNil ifNil: [TextStyle defaultFont].     port combinationRule: Form paint.     font installOn: port         foregroundColor: (self shadowColor ifNil:[c])         backgroundColor: Color transparent.     font displayString: aString on: port         from: firstIndex to: lastIndex at: (origin + aPoint) kern: 0.
SMxCanvas>>drawString: aString from: firstIndex to: lastIndex at: aPoint font: fontOrNil color: c     | font |     port colorMap: nil.     font := fontOrNil ifNil: [StrikeFont default].     font installOn: port foregroundColor: (self shadowColor ifNil:[c]) backgroundColor: nil.     font displayString: aString on: port         from: firstIndex to: lastIndex at: (origin + aPoint) kern: font baseKern negated.
I was wondering why the combinationRule is not needed.
probably because font (in #displayString:..) can choose one, which suits for it best. Not canvas.
Stef
-- Best regards, Igor Stasenko AKA sig.