Truetype font quirkiness
by Richard McKinney · in Torque Game Builder · 08/01/2006 (7:27 am) · 2 replies
I'm using a TrueType font for text on a few different controls in our game (GuiTextControl and GuiBitmapButtonTextControl). Everything works fine on my machine, but another developer who also has the same font installed can't see the text on anything.
When I build from my machine and distribute the game to other people the font works fine. He needs to be able to build from his machine too though.
The profiles look like they're fine since if I just change the fontType to a system font it works on his machine. Here's the even stranger part though... I just added a new screen that uses the font and he actually sees a few characters. It's just showing a few letters from random postions in the words. It's the second screen where the font is used. If I don't use a TrueType font, everything works fine on his machine.
Any ideas? Thanks.
When I build from my machine and distribute the game to other people the font works fine. He needs to be able to build from his machine too though.
The profiles look like they're fine since if I just change the fontType to a system font it works on his machine. Here's the even stranger part though... I just added a new screen that uses the font and he actually sees a few characters. It's just showing a few letters from random postions in the words. It's the second screen where the font is used. If I don't use a TrueType font, everything works fine on his machine.
Any ideas? Thanks.
About the author
#2
08/04/2006 (9:51 am)
Thanks for the post Scott. I'd already tried giving him the .uft files, but it looks like we put them in the wrong place. The default font cache is in /common/data/fonts, and that's where they needed to go.
Torque Owner Scott Johnson
http://www.garagegames.com/mg/forums/result.thread.php?qt=45920
Contains information on how to create / use cached fonts (.uft files). this may allow you to avoid font complications, because the .uft should be compatible across machines.
There's also the cool side effect of being able to edit the fonts, thus making them your own art.
Someone please correct me if I'm wrong here, just wanting to start helping to answer some of the questions that I've found answers for myself...