diff -r 71dcd3c025bc -r e3099486ba5a TextView.st --- a/TextView.st Fri Apr 26 13:09:57 2013 +0200 +++ b/TextView.st Fri Apr 26 14:53:56 2013 +0200 @@ -2584,14 +2584,17 @@ fontHeight := font maxHeight max:(italicFont maxHeight max:(boldFont maxHeight)). "/ fontHeight := font height "maxHeight" max:(italicFont height "maxHeight" max:(boldFont height "maxHeight")). ]. - fontHeight := fontHeight + lineSpacing. + "/ fontHeight := fontHeight + lineSpacing. "/ fontAscent := font ascent "maxAscent" max:(italicFont ascent "maxAscent" max:(boldFont ascent "maxAscent")). - fA := font ascent. - fA := (font maxAscent + font ascent) // 2. - iA := italicFont ascent. - iA := (italicFont maxAscent + italicFont ascent) // 2. - bA := boldFont ascent. - bA := (boldFont maxAscent + boldFont ascent) // 2. + "/ fA := font ascent. + fA := font maxAscent. + "/ fA := (font maxAscent + font ascent) // 2. + "/ iA := italicFont ascent. + iA := italicFont maxAscent. + "/ iA := (italicFont maxAscent + italicFont ascent) // 2. + "/ bA := boldFont ascent. + bA := boldFont maxAscent. + "/ bA := (boldFont maxAscent + boldFont ascent) // 2. fontAscent := fA max:(iA max:bA). fontWidth := font width. fontIsFixedWidth := font isFixedWidth and:[ italicFont isFixedWidth and:[ boldFont isFixedWidth ]]. @@ -4838,11 +4841,11 @@ !TextView class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.352 2013-04-26 11:09:57 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.353 2013-04-26 12:53:56 cg Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.352 2013-04-26 11:09:57 cg Exp $' + ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.353 2013-04-26 12:53:56 cg Exp $' ! !