Game Development Community

Chat hud unicode bug

by Fyodor -bank- Osokin · in Torque Game Engine · 03/17/2006 (1:12 am) · 4 replies

First, let me show you how it looks like:
www.afterworld.ru/gg/chat_hud_bug.jpgAs you can see latin text looks fine, while russian (+?? any other non latin) are broken (the second phrase said by "Poser"). The text being split not correctly.
On the first line of phrase third word is not displayer in full, only some part.
And you see same word in complete on next line. then again on another next line the previous two words are repeated. and bofere last one only first letter displayer of the word.

This is stock SDK. Screen resolution does not matter. The text being splitted on different words, but it is..
By myself I didn't have yet to have a look at the code to find out where exactly is a problem.

#1
03/28/2006 (5:06 pm)
*bump* anyone?
#2
03/31/2006 (2:02 pm)
GuiMLTextCtrl is not doing the word split properly. GFont::getBreakPos looks to be returning the right start points for word breaks but it appears that the end points are either not being interpreted properly or not being calculated properly. If you do a find in files for getBreakPos you should get a quick overview of what the function is, where it is, and how it is used, from which point coming up with a test case and fixing it should be easy.

Issue #1438. We may not get to it for a bit, we're heavy in post-GDC planning/refocusing atm.
#3
03/31/2006 (2:24 pm)
Thanks Ben.. I'll try to find some time for that.
#4
07/20/2006 (3:42 am)
Okay.. the problem is not in GuiMLTextCtrl.. it works fine.. the problem exists in guiMessageVectorCtrl.
I've setup new chat window with GuiMLTextCtrl, and everything looks is okay there.