On Wed, 2011-11-02 at 01:47 -0400, Kevin Fishburne wrote:

> I'm using SDL and OpenGL. Normal routines for drawing fonts in a 
> DrawingArea work fine; I didn't have to change my code after
> switching 
> from GTK/Qt. This code works:
> 
>    ' Draw dialogue buffer.
>    Draw.Font.Size = sheight / 32
>    Draw.Foreground = Color.Black
>    Draw.Text(Client.Dialogue, 31, sheight - 15 - sheight / 32)
>    Draw.Foreground = Color.Yellow
>    Draw.Text(Client.Dialogue, 32, sheight - 16 - sheight / 32)
> 
> So there is no control, just a draw event procedure "Screen_Draw" and 
> whatever procedures I call inside it. Maybe I should do "Font = 
> Font["..."] inside the procedure? 


You've still got me confused Kevin. DrawingArea is a control and has a
Font property.  I know little of OpenGL or SDL but it looks like the SDL
Draw class has an undocumented Font property so I'd still give the
previous a go and hope.
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to