Game Development Community

Dynamically changing fonts in a GuiProfile

by Ian Omroth Hardingham · in Torque Game Engine · 08/21/2007 (11:18 am) · 2 replies

Hey guys.

Title says it all really - has anyone got any idea of a good approach to changing the font of a GuiProfile while Torque is running and having the change shown on any controls which use that profile?

Cheers,
Ian

#1
08/21/2007 (12:32 pm)
Take a look at GFont::create (). You can use it to load a new font and get rid of the old one.
#2
08/23/2007 (5:38 am)
Or, you can assign another GuiProfile to your GuiControl, so it will use fonts from new profile.