Emphasized fonts & cs 1975

Bob Arning arning at charm.net
Tue Apr 25 20:09:45 UTC 2000


Changeset 1975 seems to have introduced a few oddities in bold and italic synthesized fonts. Take a look a the largest size of NewYork in bold with some spaces in it to see what I mean. I have included a fix for the bold problem below. I'll talk about italic in my next post.

Cheers,
Bob

===== code follows =====
'From Squeak2.8alpha of 13 January 2000 [latest update: #2005] on 25 April 2000 at 4:04:26 pm'!

!StrikeFont methodsFor: 'emphasis' stamp: 'RAA 4/25/2000 12:58'!
makeBoldGlyphs
	"Make a bold set of glyphs with same widths by ORing 1 bit to the right
		(requires at least 1 pixel of intercharacter space)"
	| g bonkForm |
	g _ glyphs deepCopy.
	bonkForm _ (Form extent: 1 at g height) fillBlack offset: -1 at 0.
	self bonk: g with: bonkForm.
	g copyBits: g boundingBox from: g at: (1 at 0)
		clippingBox: g boundingBox rule: Form under fillColor: nil.
	glyphs _ g! !





More information about the Squeak-dev mailing list