Getting custom fonts into gui.
by David Bigerstaff · in Torque Game Builder · 01/19/2006 (8:39 pm) · 3 replies
I've downloaded a few custom fonts and they're in .ttf format.
Is there a way to convert them into .uft (alpha3) or .gft (alpha2) so i can, put them in the font directory, and use them in my gui elements?
At the moment i can change the font by using a custom GUI Profile but only to fonts that are in the correct format for the version.
Any help is appreciated.
David
Is there a way to convert them into .uft (alpha3) or .gft (alpha2) so i can, put them in the font directory, and use them in my gui elements?
At the moment i can change the font by using a custom GUI Profile but only to fonts that are in the correct format for the version.
Any help is appreciated.
David
#2
look at this line here
fontType = "Arial";
change that to your fonts name..
run the game and your font will auto compile to a usable format..
as long as the font supports sizes..
if it doesnt then it may either ignore the change or give a big error :)
01/19/2006 (10:02 pm)
Open defaultprofiles.cs in common/guilook at this line here
fontType = "Arial";
change that to your fonts name..
run the game and your font will auto compile to a usable format..
as long as the font supports sizes..
if it doesnt then it may either ignore the change or give a big error :)
#3
Tom, when i change that line in alpha2 some .gft's are made, but they never worked. I could put any old garbage in the fontType string and it would make some gft's :P
When i do this with alpha3 i dont get any .uft's made at all.
Is there any resources out there for t2d users or is it just TGE at the moment?
01/20/2006 (7:38 pm)
I still dont understand it. Tom, when i change that line in alpha2 some .gft's are made, but they never worked. I could put any old garbage in the fontType string and it would make some gft's :P
When i do this with alpha3 i dont get any .uft's made at all.
Is there any resources out there for t2d users or is it just TGE at the moment?
Torque 3D Owner Luke D
Default Studio Name