Text Troubles - Just Before Releasing my 1st Game

Hi everyone, 

I’m having some trouble with simple text and I can’t find any topics on it. This is the last issue I have with my game before release. 

When playing with the text.size property after creation, the simulator shows the iPad Retina with much larger text. Adjusting the size property in accordance with display.contentScaleX appears to fix that. However, I am not sure if it is fixed on a real device… can anyone confirm?

textObject.size = 30 * display.contentScaleX 

Thanks in advance. I really hope to fix this soon and hopefully others can benefit too.

Hi @tomekgt,

I tested this, and the application of the contentScaleX seems to work on device. However, there does remain the bug about the size being increased without doing that multiplication, when using .size on Retina devices. I’ve bumped this to be investigated a.s.a.p. In the meantime, the method you’re using seems to be working fine in my device tests (iPhone5 vs. iPad Air).

Best regards,

Brent

Thank you very much Brent. With this, I can resubmit my app without trouble.

I do have one other small issue though. Text in general seems to be of different sizes on different devices. The emulator as well. My GS3 wraps text differently between the simulator and device, without using .size at any point. It’s not a huge problem and the size differences are smal but it is strange.

I confirmed this is a bug if you try to resize the display.newText object.

If you use native.systemFont, the fonts and font sizes will vary slightly between platforms because the fonts are not the same on all platforms. You need to supply your own custom font if you want the fonts consistence.

Hi @tomekgt,

I tested this, and the application of the contentScaleX seems to work on device. However, there does remain the bug about the size being increased without doing that multiplication, when using .size on Retina devices. I’ve bumped this to be investigated a.s.a.p. In the meantime, the method you’re using seems to be working fine in my device tests (iPhone5 vs. iPad Air).

Best regards,

Brent

Thank you very much Brent. With this, I can resubmit my app without trouble.

I do have one other small issue though. Text in general seems to be of different sizes on different devices. The emulator as well. My GS3 wraps text differently between the simulator and device, without using .size at any point. It’s not a huge problem and the size differences are smal but it is strange.

I confirmed this is a bug if you try to resize the display.newText object.

If you use native.systemFont, the fonts and font sizes will vary slightly between platforms because the fonts are not the same on all platforms. You need to supply your own custom font if you want the fonts consistence.