GraphicsMedium.st
branchjv
changeset 7542 9e125aa140f9
parent 7541 39940e2446a5
parent 7504 371f71deee69
child 7543 16c25df685f0
--- a/GraphicsMedium.st	Mon Aug 01 23:30:02 2016 +0100
+++ b/GraphicsMedium.st	Fri Sep 02 17:42:18 2016 +0100
@@ -782,6 +782,12 @@
     gc deviceClippingBounds:aRectangleOrNil
 !
 
+deviceFont
+    "return the current drawing font as a device font"
+
+    ^ self font onDevice:device.
+!
+
 drawableId
     "return the id of the drawable on the device"
 
@@ -816,7 +822,7 @@
      This should be redefined in some widget to perform an automatic
      redraw. See also: #basicFont:"
 
-    gc font:aFont.
+    gc basicFont:aFont.
     self changed:#font.
 !