Game Development Community

Text looks bad in the editor

by Joe Williams · in iTorque 2D · 02/15/2011 (9:04 pm) · 2 replies

The default text in the editor looks like crap. It looks like it isn't scaling when it's resized. It stays all pixelated and looks terrible. Is there something I'm missing here?

#1
02/17/2011 (10:24 am)
Edit iTorque 2D 1.4/tgb/tools/levelEditor/scripts/forms/quickEditClasses/t2dTextObject.ed.cs

Inside the LBQETextObject::CreateContent function, paste in the following:
%rollout.createTextEditProperty("fontSizes", "3", "Font Size", "", true);

Why something like that isn't there by default, who the hell knows. Generally speaking, you're going to want to set that to the same as your line height.

If you manually edit your text fields, you can actually add multiple font sizes, though I honestly have no idea what the point of that is.
#2
02/18/2011 (1:18 am)
If you resize your camera to 100 x 75, then create text it will render properly. Then you can resize you camera back up to normal and use the text you just created. That's always been my work-around for that bug.