[Gambas-user] gb3: changing the active font
Bruce Bruen
bbruen at ...2308...
Wed Nov 2 07:54:08 CET 2011
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.
More information about the User
mailing list