class: TextView
authorClaus Gittinger <cg@exept.de>
Fri, 26 Apr 2013 14:53:56 +0200
changeset 4572 e3099486ba5a
parent 4571 71dcd3c025bc
child 4573 f181a93c3bc2
class: TextView changed: #getFontParameters
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 $'
 ! !