[BUG][FIX] Missing TTCFont::maxWidth makes trouble for Connectors ( [cd][er] basically ok, small addition )

cg at cdegroot.com cg at cdegroot.com
Thu Jan 8 14:50:52 UTC 2004


There's another sender of #maxWidth that is independent of the concrete
font class, so it seems that all font subclasses need to implement this.
I suggest:

AbstractFont>>maxWidth
	self subclassResponsibility
TTCFont>>maxWidth
	^self pointSize + 1.

this code is in the attached changeset.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Font maxWidth.1.cs
Type: application/octet-stream
Size: 303 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040108/929e6dd8/FontmaxWidth.1.obj


More information about the Squeak-dev mailing list