[squeak-dev] The Trunk: Graphics-mt.351.mcz

Levente Uzonyi leves at caesar.elte.hu
Fri Jun 17 15:59:33 UTC 2016


Hi Marcel,

I suppose this change has broken all StrikeFonts other than Bitmap DejaVu 
Sans.

Levente

On Thu, 16 Jun 2016, commits at source.squeak.org wrote:

> Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
> http://source.squeak.org/trunk/Graphics-mt.351.mcz
>
> ==================== Summary ====================
>
> Name: Graphics-mt.351
> Author: mt
> Time: 16 June 2016, 1:56:13.140696 pm
> UUID: 40df15d7-0c28-2b4e-8be2-231d75e087f8
> Ancestors: Graphics-lpc.350
>
> Removes manual kerning corrections for the 7-point DejaVu Sans, which are not necessary anymore.
>
> =============== Diff against Graphics-lpc.350 ===============
>
> Item was changed:
>  ----- Method: StrikeFont>>ascentKern (in category 'accessing') -----
>  ascentKern
>  	"Return the kern delta for ascenders."
> +
> + 	self depth > 1 ifTrue: [^ 0].
> +
> + 	"Optimization for traditional 1-bit fonts."
> + 	^ (emphasis allMask: 2)
> + 		ifFalse: [0]
> + 		ifTrue: [(self ascent-5+4)//4 max: 0]  "See makeItalicGlyphs"
> - 	(emphasis noMask: 2) ifTrue: [^ 0].
> - 	^ (self ascent-5+4)//4 max: 0  "See makeItalicGlyphs"
>
>  !
>
> Item was changed:
>  ----- Method: StrikeFont>>baseKern (in category 'accessing') -----
>  baseKern
>  	"Return the base kern value to be used for all characters."
>
> + 	self depth > 1 ifTrue: [^ 0].
> - 	| italic |
> - 	italic := emphasis allMask: 2.
>
> + 	"Optimization for traditional 1-bit fonts."
> + 	^ (emphasis allMask: 2)
> + 		ifFalse: [0]
> + 		ifTrue: [((self height-1-self ascent+4)//4 max: 0)  "See makeItalicGlyphs"
> + 			+ (((self ascent-5+4)//4 max: 0))]!
> - 	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))!
>
> Item was changed:
>  ----- Method: StrikeFont>>descentKern (in category 'accessing') -----
>  descentKern
>  	"Return the kern delta for descenders."
> - 	(emphasis noMask: 2) ifTrue: [^ 0].
> - 	^ (self height-1-self ascent+4)//4 max: 0  "See makeItalicGlyphs"
>
> + 	self depth > 1 ifTrue: [^ 0].
> +
> + 	"Optimization for traditional 1-bit fonts."
> + 	^ (emphasis allMask: 2)
> + 		ifFalse: [0]
> + 		ifTrue: [(self height-1-self ascent+4)//4 max: 0]  "See makeItalicGlyphs"
> +
>  !
>
>
>


More information about the Squeak-dev mailing list