Object.st
branchjv
changeset 20223 c5f855bca10b
parent 20220 874c664d2cbd
parent 20222 a1883a86603d
child 20342 219a5a47e8b1
--- a/Object.st	Tue Aug 09 06:39:03 2016 +0200
+++ b/Object.st	Wed Aug 10 07:04:17 2016 +0200
@@ -692,6 +692,7 @@
 ! !
 
 
+
 !Object methodsFor:'accessing'!
 
 _at:index
@@ -3888,7 +3889,7 @@
 heightOn:aGC
     "return the height of the receiver, if it is to be displayed on aGC"
 
-    ^ (aGC font onDevice:aGC device) heightOf:(self displayString)
+    ^ aGC deviceFont heightOf:(self displayString)
 !
 
 printStringForPrintIt
@@ -3906,13 +3907,13 @@
 widthFrom:startIndex to:endIndex on:aGC
     "return the width of the receiver, if it is to be displayed on aGC"
 
-    ^ (aGC font onDevice:aGC device) widthOf:(self displayString) from:startIndex to:endIndex
+    ^ aGC deviceFont widthOf:(self displayString) from:startIndex to:endIndex
 !
 
 widthOn:aGC
     "return the width of the receiver, if it is to be displayed on aGC"
 
-    ^ (aGC font onDevice:aGC device) widthOf:(self displayString)
+    ^ aGC deviceFont widthOf:(self displayString)
 ! !
 
 !Object methodsFor:'double dispatching'!