Please explain display.newRetinaText

Should retina text take up the same “percentage” of the screen on both an iPhone < 4 and iPhone4+? Two screenshots to illustrate. On the iPhone 4 simulator, the text takes up a much bigger piece of the screen,

local myText = display.newRetinaText("This is a longer bit of text", 50, 50, native.systemFont, 16)  
myText:setTextColor(255)  

Results:
iPhone simulator:
http://www.flashysubstance.com/bugReport/txtlonger_iPhone.jpg

iPhone4 sim:
http://www.flashysubstance.com/bugReport/txtlonger_iphone4.jpg
[import]uid: 32462 topic_id: 16883 reply_id: 316883[/import]

Submitted as case 8917 [import]uid: 32462 topic_id: 16883 reply_id: 63260[/import]

this was because I was requiring widget library in build 645 - will be fixed with 646. Thanks for prompt response Jonathan!! [import]uid: 32462 topic_id: 16883 reply_id: 63275[/import]

Did this issue get resolved OK? I’m using daily build 691 and just tried using a retinaText - on the iPhone 4 simulator the text is really small compared to how it looks on the iPhone simulator.

Have I misunderstood how this is supposed to work? Do I have to check myself to see if the device is a retina display, and then call display.newRetinaText instead of display.newText?

Or should Corona automatically give me the right size text for my screen?

Thanks

[import]uid: 93610 topic_id: 16883 reply_id: 70185[/import]

anyone ? I’m still struggling with this one - If I create my text as a display.retinaText fixed size text box, it appears different on iPhone sim compared to iPhone 4 sim (different position onscreen).

If I use display.newText instead, it’s fine on both sims.

Have I misunderstood how retinatext works? Is there any documentation for it?

Thanks! [import]uid: 93610 topic_id: 16883 reply_id: 77375[/import]

I’ve got a workaround, although I don’t like it much - just write your own text function which calls display.newRetinaText with a scaling factor. Then it works the same on iPhone and iPhone 4 (and the Android phones).

For some reason, the text looks like it gets completely messed up on the iPad sim if you do this. No idea why, but I’m not currently developing for ipad.

function newHHText(text, x, y, w, h, font, fontSize)  
 return display.newRetinaText(text, x/display.contentScaleX, y/display.contentScaleY, w, h, font, fontSize)  
end  

[import]uid: 93610 topic_id: 16883 reply_id: 77384[/import]

newRetinaText has major issues, Ansca has already posted a workaround/fix for interim but I can’t seem to find the thread that had it. [import]uid: 36054 topic_id: 16883 reply_id: 77409[/import]