newText stretches on simulator

Hey

I’m currently making a intructions scene for my game, where I user the display.newText extensively. The problem is, that I have images placed within the scene as well, and when I try it out on an Android device(HTC Desire and Samsung Galaxy S2) the text shrinks in the y - direction, causing the images lie on top of the text.

I’m using \n to create new lines, is that where things go crazy?
Thanks in advance for any help!
[import]uid: 95786 topic_id: 24696 reply_id: 324696[/import]

set zoom to letterbox in build.settings file [import]uid: 7911 topic_id: 24696 reply_id: 100091[/import]

zoom to letterbox in build.settings?

I have scale = “letterbox” in the config.lua if that is what you mean.

The problem is that the text itself shrinks down on the y-axis on the device relative to the other object. This way it takes up less space and the text longer down the page is being “pulled” up, and comes behind the images. [import]uid: 95786 topic_id: 24696 reply_id: 100118[/import]

@pfeiring, does the text appear fine on Simulator? Are you using custom font? Which daily build are you using? [Edit: just noticed on the subject line that it is happening on Simulator.]

I kind of remember seeing strange stretching effect with my custom font. I think it was connected to new line (i.e., \n), but I’m not sure. I could see the strange stretch/warping of the text on Simulator. It went away, though, as I converted my newRetinaText objects (and the wrapper objects from the code exchange) to our latest newText object. I don’t remember exactly what I did along the way that helped, but it could’ve been the renaming of the fontname from the name of the font to the file name (i.e., from myfont to myfont.ttf, for example.) Not sure if your problem is the same one, but thought I’d mention.

Naomi

Edit: It just occurred to me that what I did to resolve the stretchy/warped text issue might’ve been the inclusion of the optional width & height params to the newText object. [import]uid: 67217 topic_id: 24696 reply_id: 100167[/import]

The problem is that the text is different on the simulator and on the device. And yes, I am using a custom font and build #782.

I also have the width and height parameters set.

I’ll try the idea with the filename when I have time and see if that works. : ) [import]uid: 95786 topic_id: 24696 reply_id: 100239[/import]