Wrong text positions on iPhone

Hi.

The position of text on a game I am testing on an iPhone appears to be incorrect. So, for example, if a number (text) fits inside a box (on a background image) in the simulator it appears in a slightly different position relative to the box on the iPhone.

The text has a reference of CenterReferencePoint and the x, y positions are always set after the reference is set.

The content is scaled using “zoomStretch”.

What is going wrong? I would like it to work correctly under “zoomStretch”. [import]uid: 64736 topic_id: 12670 reply_id: 312670[/import]

Hi, I’m pretty sure you’re using native.systemFont as your font name, which calls for the underlying OS default font. Try using a concrete font name in your text parameters, that should solve it. Let me know how it went… [import]uid: 23043 topic_id: 12670 reply_id: 46381[/import]

Hi.

I just tried “Helvetica” and the problem persists. [import]uid: 64736 topic_id: 12670 reply_id: 46384[/import]

I’ve always had problems positioning texts… there’s a little discrepancy between Corona Simulator and iOS simulator. [import]uid: 9158 topic_id: 12670 reply_id: 46385[/import]

Is this true for Android too, as the game will go on both? If so, is the discrepency the same?
[import]uid: 64736 topic_id: 12670 reply_id: 46386[/import]

Don’t know for Android…
I usually place the text as I like in Corona Simulator, then test the app with iOS Simulator / Android and adjust the position. [import]uid: 9158 topic_id: 12670 reply_id: 46393[/import]

Ok, good to know, this actually is an annoying problem. Any answer from ansca staff would be greatly appreciated,
[import]uid: 23043 topic_id: 12670 reply_id: 46411[/import]

I agree.

One thing I noticed was that the change in position varied according to the font used, i.e. Arial gave a closer proximation than Helvetica. [import]uid: 64736 topic_id: 12670 reply_id: 46415[/import]

@shedder,
How do you test with the iOS simulator?

I have a lot of problems with text positioning discrepancies in the Corona simulator and the device (iPad). Wish they would address this bug. [import]uid: 52127 topic_id: 12670 reply_id: 46502[/import]

I’ve found that text positions are correct in Corona running on a Mac - it’s only the Windows simulator which is consistently off.

Very frustrating, for sure. Would love to hear some ideas about what’s happening. [import]uid: 65996 topic_id: 12670 reply_id: 50461[/import]