Game Development Community

Help me...Unicode chating

by Sara · in Torque Game Engine Advanced · 03/21/2006 (12:37 am) · 8 replies

Recently, after Unicode support, i use variety 'korean font(HANGUL)' at GUI. :>

but, i don't know that input 'korean font(HANGUL)' in chathudGUI.

now, i apply 'HANGUL font' to MessageHud_Edit, MessageHud_Text. (exactly, ChatHudEditProfile, ChatHudTextProfile, ChatHudMessageProfile are applied 'HANGUL' )

text = "가나다[Some korean Chars]"; ==> this case is watched well, HANGUL FONT.

after press "u" key(chathud visible key), i press korean/english translation key and tiping character. but.. only english Alphabet is looked.

is this Ime question? help me, please.

i hope communication chatMessage in korean font.

#1
03/21/2006 (10:43 am)
What version of TSE you use? What's the HANGUL font setting you put the in the profile?
#2
03/21/2006 (5:58 pm)
I thanks your reply!

TSE Version is Milestone 2.
recently, It is Updated at Jan 20, 2006.
Using HANGUL font is 'Gulim', 'Pyunji R', 'Dotum'.
#3
03/28/2006 (1:24 am)
What's the exact setting you put in the profile? Can you cut and paste the code block here?
#4
03/28/2006 (4:20 am)
Thanks steven :)

I use profiles that ChatHudTextProfile, ChatHudEditProfile , HudTextProfile, ChatHudMessageProfile

new GuiControlProfile (ChatHudEditProfile)
{
   opaque = false;
   fillColor = "255 255 255";
   fillColorHL = "128 128 128";
   border = false;
   borderThickness = 0;
   borderColor = "40 231 240";
   fontColor = "40 231 240";
   fontColorHL = "40 231 240";
   fontColorNA = "128 128 128";
   textOffset = "0 2";
   autoSizeWidth = false;
   autoSizeHeight = true;
   tab = true;
   canKeyFocus = true;
   // sara 
   fontType = "Pyunji R";
   fontCharset = HANGUL;
   fontSize = 18;
};

new GuiControlProfile (ChatHudTextProfile)
{
   opaque = false;
   fillColor = "255 255 255";
   fillColorHL = "128 128 128";
   border = false;
   borderThickness = 0;
   borderColor = "40 231 240";
   fontColor = "40 231 240";
   fontColorHL = "40 231 240";
   fontColorNA = "128 128 128";
   textOffset = "0 0";
   autoSizeWidth = true;
   autoSizeHeight = true;
   tab = true;
   canKeyFocus = true;
   // sara
   fontType = "Pyunji R";
   fontCharset = HANGUL;
   fontSize = 18;
};

new GuiControlProfile ("ChatHudMessageProfile")
{
//   fontType = "Arial";
   fontSize = 16;
   fontColor = "44 172 181";      // default color (death msgs, scoring, inventory)
   fontColors[1] = "4 235 105";   // client join/drop, tournament mode
   fontColors[2] = "219 200 128"; // gameplay, admin/voting, pack/deployable
   fontColors[3] = "77 253 95";   // team chat, spam protection message, client tasks
   fontColors[4] = "40 231 240";  // global chat
   fontColors[5] = "200 200 50 200";  // used in single player game
   // WARNING! Colors 6-9 are reserved for name coloring 
   autoSizeWidth = true;
   autoSizeHeight = true;

  // sara 
   fontType = "Pyunji R";
   fontCharset = HANGUL;
   fontSize = 18;
};

new GuiControlProfile ("HudTextProfile")
{
   opaque = false;
   fillColor = "128 128 128";
   fontColor = "0 255 0";
   border = true;
   borderColor = "0 255 0";
  // sara
   fontType = "Pyunji R";
   fontCharset = HANGUL;
   fontSize = 18;
};

I can't HANGUL font chating as before.

In GuiChatEdit , HANGUL font is used , however receive not HANGUL but ENGLISH input.

HANGUL/ENGLISH convert key do not working..

Does it possible work?

Give me Hint please..
#5
03/28/2006 (8:46 am)
This is the part I've not fixed before for TSE. I'll take a look for this!
#6
03/28/2006 (10:49 am)
What's the file size of your Pyunji R_18.uft font file in common/ui/cache directory?
#7
03/28/2006 (10:50 am)
What's the file size of your Pyunji R_18.uft font file in common/ui/cache directory?
#8
03/28/2006 (6:06 pm)
File size of 'Pyunji R_18.uft' is 266kB.

'Pyunji R_18.uft'font is used well, and is seen well.

but, The biggest problem is keyboard input.

I Pressed HANGUL/ENGLISH convert key, and after setting up HANGUL, and tiping some HANGUL sentence.

but GuiChatEdit in Game don't receive HANGUL input. only, receive ALPHABET of pressed key .



HANGUL fonts is use very well In GUI.

HANGUL Chating is the only problem I have.