The Trunk: Graphics-jmv.82.mcz

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

The Trunk: Graphics-jmv.82.mcz

commits-2
Juan Vuletich uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-jmv.82.mcz

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

Name: Graphics-jmv.82
Author: jmv
Time: 26 October 2009, 5:55:54 am
UUID: 0f557557-88df-416b-bba6-6025b28e6edb
Ancestors: Graphics-nice.81

Fixed an issue with the #baseKern of italic underlined StrikeFonts.

=============== Diff against Graphics-nice.81 ===============

Item was changed:
  ----- Method: StrikeFont>>baseKern (in category 'accessing') -----
  baseKern
  "Return the base kern value to be used for all characters."
 
  | italic |
  italic := emphasis allMask: 2.
 
+ glyphs depth > 1 ifTrue: [
- (self isSynthetic not and: [ glyphs depth > 1 ]) ifTrue: [
  ^(italic or: [ pointSize < 9 ])
  ifTrue: [ 1 ]
  ifFalse: [ 0] ].
 
  italic ifFalse: [^ 0].
  ^ ((self height-1-self ascent+4)//4 max: 0)  "See makeItalicGlyphs"
  + (((self ascent-5+4)//4 max: 0))!