Strange text display problems
by Dave Young · in iTorque 2D · 02/24/2009 (9:10 pm) · 3 replies
At random times while displaying text in a few apps I've made now, I noticed that guiTextEditCtrl and guiTextCtrl can get their text fouled up. When it happens it usually happens near the end of the word and can look like overlayed letters, or some random memory junk after the text.
Has anyone else noticed this?
Has anyone else noticed this?
#2
02/25/2009 (12:14 pm)
I think I've noticed this as well. In the first steps of an NPC dialog system I do a "typewriter reveal" (e.g. one character at a time) and I get some strange results while that occurs. Since it is "working", I'm just scrapping investigation of rendering issues until I'm done with the actual game and in bug fix mode. Plus, we might have a new iTGB version by then <cross what="fingers"/>
#3
www.garagegames.com/community/forums/viewthread/45920
02/25/2009 (4:06 pm)
Look here for some discussion on how to generate the utf files with all the needed characters/sizes:www.garagegames.com/community/forums/viewthread/45920
Torque 3D Owner Mat Valadez
Default Studio Name
TGB (PC or Mac) will genereate <font Name>.uft files to be used when distributing your game. It genereates those files by making calls to the OS to get the font data. On the iPhone, that doesn't work so well, so you want it to only load the .ufts.
Problem is, TGB only populates the ufts with character info only for the characters you've used already, so if you use a different character on the iPhone, there's a good chance it won't look right.
i.e. on PC you enter a player name as "Bob" and on the iPhone you enter "qbzobxy", you'll likely get only the characters 'b' and 'o' and the rest may be garbled or not there at all