First, you should not be using newRetinaText. This has been deprecated and you should use newText() instead. It supports retina devices as well as supports text wrapping.
Now I think you meant to ask, how do I display text that has quote marks " instead of parentheses ().
There are two ways:
-
Use single quotes (tick marks or apostrophes)… instead of double quotes.
local sampletext = display.newRetinaText( ‘My name is “Ted”’.", 0, 0, “HelveticaNeue-CondensedBold”, 20)
-
or use Lua’s special multi-line string delimiters: [[and]]
local sampletext = display.newRetinaText( [[My name is “Ted”]].", 0, 0, “HelveticaNeue-CondensedBold”, 20)
The double square brackets can be used anywhere you would normally use either single or double quotes. If you wanted a string that uses both singles and doubles like:
[[Ted’s name is “Ted”]]
then the double square brackets will allow you to use both of the text quotes in the string.
[import]uid: 19626 topic_id: 32326 reply_id: 128675[/import]