Game Development Community

Just a general Text Object question

by kupo · in General Discussion · 07/29/2009 (10:51 am) · 2 replies

Just a question i've been trying to find an answer to.

When using Text objects in TGB, does the font get embedded somehow with the game after it is 'published', or do you have to rely on the user having that font in their directory? Is there a way to embed it or make sure it runs with the game? I haven't tried testing it yet - since I don't have another computer to test on at the moment.

Thanks!

#1
07/29/2009 (3:41 pm)
If you absolutely want to make sure that a certain writing style stays with the game, then you can use bitmaps for the buttons and other parts of the GUI. If it's a Windows game and you don't use any font that you, like, found on the interwebs or anything, you should be fine. But simple bitmaps of just the font with a transparent background can look just like regular text objects ;)
#2
07/30/2009 (12:35 pm)
i'm not sure about TGB, but in TGE the font is converted to local .uft bitmap files in the folder common/ui/cache, and rendered from those. if a .uft file for the font is already present in the cache, then it just uses that. so, long story short, if you just distribute the common/ui/cache folder along with the rest of your game you should be set.