Game Development Community

t2dTextObject with special character

by shadowcode · in Torque Game Builder · 07/17/2010 (7:55 am) · 0 replies

Hi,

does anybody know how a 2dTextObject can display special character like ä, ö, ü, é , è? The font I use is a unicode font. A guiTextCtrl can display special characters, but if I try to set a string to a t2dTextObject via .text all special characters are displayed wrong.

example:
new t2dTextObject(MarySpeakBubbleText) {
      canSaveDynamicFields = "1";
      Visible = "0";
      Position = "18.100 -16.050";
      size = "57.403 18.000";
      BlendColor = "0 0 0 1";
      MountOffset = "0.139 -0.265";
      text = " ";
      font = "MonoType Corsiva";
      wordWrap = "1";
      hideOverflow = "1";
      textAlign = "Left";
      lineHeight = "3.6";
      aspectRatio = "0.833333";
      lineSpacing = "0";
      characterSpacing = "0";
      autoSize = "0";
      fontSizes = "80";
      textColor = "0 0 0 1";
      bilinearFilter = "0";
      snapToInteger = "0";
      noUnicode = "0";
         hideOverlap = "0";
         mountID = "22";
         mountToID = "21";
   };

$JustAText = "Könnt ihr auch zählen?"
MarySpeakBubbleText.Text= $JustAText;

regards