"P"> GUIBitmapButtonTextCtrl Missing Letters | Torque Game Builder | Forums | Community | GarageGames.com

Game Development Community

GUIBitmapButtonTextCtrl Missing Letters

by Herry Yohanes · in Torque Game Builder · 03/19/2007 (7:56 pm) · 2 replies

Hi guys,

I placed some GUIBitmapButtonTextCtrl, each with some words like "Play Game" or "Options". When I tested on my PC, it showed perfectly. But when it tested on different PC configurations, some letters are missing , for example "Play Game" -> "P ay ame" or "Options" -> " tions". I'm using a new font (non default windows font) for the buttons.

Anyone know what might caused the problem ?

Thank you.

#1
04/02/2007 (5:23 pm)
The other computer doesn't have the font you're using installed and your .uft files are missing definitions for those characters. .uft files get exported automatically for each fontType/size combination you use. However, it only automatically exports the characters that it sees you use. When using a new nonstandard font it can be useful to call the populateFontCacheRange() method to force an entire range of characters to be written to the .uft file instead of running through your whole game and making it display all the characters you need.

.ufts are located in the games/common/data/fonts folder by default. If you just copied your game folder and missed the common folder, it wouldn't pick up the new .ufts at all. If you did and your .uft files are older than the ones on your development machine, that could also cause the problem.

Followup post here: www.garagegames.com/mg/forums/result.thread.php?qt=59741
#2
04/05/2007 (7:45 am)
Hi Richard, thanks for your tips, it work like a charm ^___^