Build 771 or "One Text To Rule Them All"

Putting retina support into display.newText() is great, but there’s at least one problem with it.

I target my apps to 640x960 and trust Corona to scale gracefully to 320x480 for those few 3Gs handsets out there, and it does. Until now.

display.newEmbossedText (and button labels with emboss=true) produces weird fuzzy and barely legible text in the iPhone simulator when the config.lua is set for 640x960. [import]uid: 44647 topic_id: 23658 reply_id: 323658[/import]

As far as I know, “newEmbossedText” is not yet updated for iPad3 “retina” yet, and might still be in the process of converting over. As such, it might not be working quite properly yet… i’m sure the next few days will shed light on this.

(Yes, I know you’re not referring specifically to how this functions on the iPad3; i’m just saying that the original “newText()” API has been modified in Build 771, but not the embossed API.) [import]uid: 9747 topic_id: 23658 reply_id: 95030[/import]

The release notes for 771 explicitly say “display.newEmbossedText() now uses display.newText.”
[import]uid: 44647 topic_id: 23658 reply_id: 95166[/import]

Bug: ?

Build 772
In iPad simulator, this works:

local textFunction = display.newRetinaText  
 row.title = textFunction( "DMC 150 Dusty Rose ult vy dk", 24, 0, native.systemFontBold, 32 )  

but on iPad Retina simulator, I get a black rectangle instead.

Changed to
local textFunction = display.newText and all seems well.
[import]uid: 108660 topic_id: 23658 reply_id: 95274[/import]

My multi-line text where w=0 and h=0 is getting stretched horizontally. It’s not attractive.

EDIT: Sorry, no, the text I mean is not w=0, it’s w=600 with a \n in it for control over the line breaks. [import]uid: 44647 topic_id: 23658 reply_id: 95289[/import]

Hi,

I have the exact same problem as Toby2.

I never used newRetinaText, I prefer to use THE trick to display upscaled text. With the latest builds (767 to 772), on paragraphs (\n) where h=0, the text appears stretched. It looks okay if I set h to some value.

For information, my app was ready, waiting to be published so I didn’t change anything in the code lately. It just went form perfect text to stretched when building with a recent Corona version.

Do you guys have an explanation?

EDIT: It still works perfectly with build 704b, tho, so I’ll use that one to release the app.

Ch. [import]uid: 4958 topic_id: 23658 reply_id: 95493[/import]

774 seems to correct the stretched text, but not the blurry downscaled embossed text. [import]uid: 44647 topic_id: 23658 reply_id: 96614[/import]