1.1.3 Text object alignment bug
by Nelson A. K. Gonsalves · in Torque Game Builder · 12/05/2006 (9:44 pm) · 2 replies
This image explains it better than I could:

In the image you see 3 text objects, created as displayed below and mounted with varying offsets above the rabbit, with the only changes between them being the textAlign variable.
The right and center alignments have visible overlapping issues.

In the image you see 3 text objects, created as displayed below and mounted with varying offsets above the rabbit, with the only changes between them being the textAlign variable.
The right and center alignments have visible overlapping issues.
new t2dTextObject()
{
scenegraph = SceneWindow2D.getScenegraph();
position = "0 0";
size = "128 36";
text = "";
font = "Verdana Bold";
wordWrap = "1";
hideOverflow = "1";
textAlign = "Center";
lineHeight = "12";
aspectRatio = "1";
lineSpacing = "0";
characterSpacing = "0";
autoSize = "0";
fontSizes = "12";
textColor = "1 1 1 1";
};About the author
#2
12/06/2006 (8:56 pm)
I've just tried the font auto-generation and nothing changed, the weirdness was still there. Also I've played around with the text object in the editor testing various settings and I seem to get the weirdness no matter how the text is setup in all but the left alignments.
Associate Tom Eastman (Eastbeast314)