[Gambas-user] fonts
    Rob 
    sourceforge-raindog2 at ...94...
       
    Tue Jan 18 02:45:27 CET 2005
    
    
  
On Monday 17 January 2005 15:13, Frank Berg wrote:
> how can i get the actuell pixel values of font.heigth and
> font.width (in same pixelvalue as ME.x and ME.y) so i can set
> an correct size to button or labels
That is device dependent (i.e. it's different between the screen 
and the printer) so you use Draw.TextHeight and Draw.TextWidth 
to get those values.  I think you might have to have a 
Draw.Begin active when you call those methods.
Rob
    
    
More information about the User
mailing list