New iPad 3 textfix function question

Hi,

I have not been using display.newRetinaText(), I had already built my game with this function:

http://blog.anscamobile.com/2011/07/tip-say-goodbye-to-blurry-text-for-good/

It worked very nicely for me, and if it ain’t broke don’t fix it! But now I bet it is broke as far as the new iPad is concerned. I am wondering how it should be modified to handle the new iPad resolution? I do not have an iPad 3 to test on unfortunately, but I was thinking something like:

if xScale < .25 or yScale < .25 then
sizeMultiply = 4
end

Does that sound about right? Will that fix the text for an iPad 3? What would the display.contentScaleX be on an iPad 3 for an app using letterbox scaling, originally built for 320x480?

Any help would be greatly appreciated, thanks. [import]uid: 8139 topic_id: 23666 reply_id: 323666[/import]

display.contentScaleY is 4.2

I use this test to check for iPad 3:

[lua]iPad3 = false
if 1/display.contentScaleY > 4 and system.getInfo( “model” ) == “iPad” then
iPad3 = true
end[/lua]

[import]uid: 8872 topic_id: 23666 reply_id: 95048[/import]

That’s excellent, thank you for sharing that! [import]uid: 8139 topic_id: 23666 reply_id: 95186[/import]

As of build 771 you don’t need to roll your own functions to get sharp text on any device (retina or not). You can use the standard display.newText() now and get sharp text.
(newRetinaText is deprecated)

I’ve tried it, and it works… [import]uid: 70847 topic_id: 23666 reply_id: 95213[/import]

Oh wow! Had no idea, thanks! I’ve been using the current stable release for so long as far as building apps for market, it seems like so much has changed with the daily builds. I wonder when it will all get built into a new official stable release.

[import]uid: 8139 topic_id: 23666 reply_id: 95315[/import]