DeviceGraphicsContext.st
changeset 7218 4c15124a9431
parent 7066 ac2d03dac697
child 7223 bce4cd6c45cd
child 7237 9482956af0f1
equal deleted inserted replaced
7216:9033a55cd780 7218:4c15124a9431
     1 "{ Encoding: utf8 }"
       
     2 
       
     3 "
     1 "
     4  COPYRIGHT (c) 1992 by Claus Gittinger
     2  COPYRIGHT (c) 1992 by Claus Gittinger
     5 	      All Rights Reserved
     3 	      All Rights Reserved
     6 
     4 
     7  This software is furnished under a license and may be used
     5  This software is furnished under a license and may be used
   649 
   647 
   650 font
   648 font
   651     "return the font for drawing - here, a device font is returned if
   649     "return the font for drawing - here, a device font is returned if
   652      the GC is realized."
   650      the GC is realized."
   653 
   651 
   654     device notNil ifTrue:[
   652     (device notNil and:[font notNil]) ifTrue:[
   655 	font := font onDevice:device
   653         font := font onDevice:device
   656     ].
   654     ].
   657     ^ font
   655     ^ font
   658 !
   656 !
   659 
   657 
   660 font:aFont
   658 font:aFont