Game Development Community

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

#1
01/19/2006 (9:06 pm)
Perhaps I'm misunderstanding the problem, but if the truetype font is installed on your system you should be able to reference it by name in the Gui Profile right away. That is what actually creates the cached .gft versions in the first place; it loads it from the system if it can find it and creates the cache for the font sizes you use.
#2
01/19/2006 (10:02 pm)
Open defaultprofiles.cs in common/gui

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 :)
#3
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?