645: display.newRetinaText() and display.newEmbossedText()

display.newRetinaText() seems to not fully support multi-line text. In the simulator, if I’m running the standard iPhone, it will wrap the text correctly. If I switch to either the iPhone4 or iPad simulators, it ceases to wrap the text. I did a build for device for my iPhone4 and it also fails to wrap text.

Now for display.newEmbossedText(), is there some parameters we can play with to control the display?

Also, it doesn’t seem to update. I’m using it for the score in my game, and if I just use “display.newText”, it updates. If I use display.newEmbossedText, it shows the initial value with an emboss, but the score does not update when I do a score.text = newscore.

[import]uid: 19626 topic_id: 16771 reply_id: 316771[/import]

I also noticed that the text is scaled up on the iPad which causes the text to be blurry.

Maybe it would be possible to include a new setting in config.lua to control when ‘retina text’ is to be used? Like the imageSuffix setting for image loading. Ex. there could be a setting retinaText = 1.8 to tell the system to use retina text on devices with a scale factor of 1.8 and above.
EDIT:
Previously I stated that the .width and .height parameters were not correct. I forgot that I had to multiply their values with xScale and yScale to get correct values…
[import]uid: 70847 topic_id: 16771 reply_id: 62810[/import]

Regarding retina text:

display.newText() has been modified to handle “retina text” automatically, and therefore display.newRetinaText() has been deprecated since it is no longer needed.

The changes will be reflected in the next daily build (the one posted *after* 2012.770).
[import]uid: 52430 topic_id: 16771 reply_id: 94938[/import]