Game Development Community

Fonts in TGB 1.5 - Where to Store the UFTs?

by Kalle Wik · in Torque Game Builder · 08/24/2007 (6:58 pm) · 0 replies

I've been converting some projects to TGB 1.5, and ran into a significant problem - UFTs aren't being read, no matter where I store them.

I've tried storing them in the following places:
/common/data/fonts
/fonts
C:/Documents and Settings//Application Data///fonts
C:/Documents and Settings//Application Data/GarageGames/TorqueGameBuilder/fonts

Of these, the only one that even slightly works is the last - the fonts work in the Game Builder, but not in the player.

Looking at the getPrefsPath code, it seems that the third one should be correct, although for some reason there seems to be an #ifdef statement defaulting it to just "fonts" if TGB_PLAYER is defined. I'm not sure why this is set up that way.

So where do I store the UFTs for them to be actually used by the game?