display.newText on iPad Pro simulator

Does anyone know what’s going on here… in several areas of my app, I am trying to display some text.  Everything works on on the sim and devices, except the iPad Pro.  It seems the last letter is either cut off or wraps to the next line (that I am cropping).

Example image below.  First image is on the iPad simulator. Second is iPad Pro simulator. 

I tried both the new and “classic” version of display.newText.  What’s interesting is if I pad out my string with a trailing blank space, everthing works, so it seems like the iPad Pro simulator is chopping the last chanracter somehow.  I do not have an iPad Pro device to test this out.

thanks,

–John

@John,

This is just a guess, but I’ve also seen strange issues w/ iPad Pro.  I think that Corona is encountering an issue rendering the font at the size needed to display it.  i.e. The massive resolution of the iPad Pro is pushing the resultant texture size beyond an acceptable limit and it is failing silently.

I know, this isn’t much help, but…  let me suggest this.  Try choosing a smaller font size for the problem word.  If that renders, then you have a number of options (till someone with a better answer comes along):

  • Use a smaller font size and leave it.

  • User a smaller font size, but scale up the resultant object (may fail) using obj:scale( scaleFactor, scaleFactor)

  • Render each letter individually as discrete display object (ick I know)

  • Use a bitmapped font instead. (Some work to set up initially, but will probably give best results)

  • Generate the word in a image editor and display it from texture (i.e. displayNewImageRect() )

  • Totally ignore me and wait for someone with a better answer.  :smiley:

Thanks Ed…  good suggestions, and it appears that using a smaller font size and scaling up works!  That’s my workaround for now.

If I knew that this was a simulator only thing, I wouldn’t mind.  I do not have an iPad Pro to test on so I am going to have to have to make the assumption that it would happen on the device as well.

Thanks for your help!

–john

When you say simulator, Xcode iOS Simulator or the Corona SDK simulator?

Hi Rob… Corona Simulator under Windows OS

thanks

I have experienced this on the lastest stable build. The text seems to fit on simulator and on iPhone 6 Plus (physicall device
) the text seems to be 1 pixel too big and I would decrease the font down by one and it would look ok on device and corona simulator. This is a very rare case but a bet I can make an example tommrow (it is to late). I am running on iOS 9.2.1

@John,

This is just a guess, but I’ve also seen strange issues w/ iPad Pro.  I think that Corona is encountering an issue rendering the font at the size needed to display it.  i.e. The massive resolution of the iPad Pro is pushing the resultant texture size beyond an acceptable limit and it is failing silently.

I know, this isn’t much help, but…  let me suggest this.  Try choosing a smaller font size for the problem word.  If that renders, then you have a number of options (till someone with a better answer comes along):

  • Use a smaller font size and leave it.

  • User a smaller font size, but scale up the resultant object (may fail) using obj:scale( scaleFactor, scaleFactor)

  • Render each letter individually as discrete display object (ick I know)

  • Use a bitmapped font instead. (Some work to set up initially, but will probably give best results)

  • Generate the word in a image editor and display it from texture (i.e. displayNewImageRect() )

  • Totally ignore me and wait for someone with a better answer.  :smiley:

Thanks Ed…  good suggestions, and it appears that using a smaller font size and scaling up works!  That’s my workaround for now.

If I knew that this was a simulator only thing, I wouldn’t mind.  I do not have an iPad Pro to test on so I am going to have to have to make the assumption that it would happen on the device as well.

Thanks for your help!

–john

When you say simulator, Xcode iOS Simulator or the Corona SDK simulator?

Hi Rob… Corona Simulator under Windows OS

thanks

I have experienced this on the lastest stable build. The text seems to fit on simulator and on iPhone 6 Plus (physicall device
) the text seems to be 1 pixel too big and I would decrease the font down by one and it would look ok on device and corona simulator. This is a very rare case but a bet I can make an example tommrow (it is to late). I am running on iOS 9.2.1