Centered text right in the center of the contentWidth

I have this simple code:
local text = display.newText(“TESTTESTTESTTESTTESTTESTTEST”, display.contentWidth/2,display.contentHeight/2,system.nativeFont,24)
text:setReferencePoint(display.centerReferencePoint)
text:setTextColor(255,255,255)
Why it isn’t perfect aligned?
I want something like this : http://i46.tinypic.com/5x243o.png . Right in the middle.
Here is a pic with the problem : http://i50.tinypic.com/eognm.png [import]uid: 178587 topic_id: 31768 reply_id: 331768[/import]

Add

[lua] text.x = display.contentWidth /2
text.y = display.contentHeight /2[/lua]

after you create the text object. You can also get rid of the set reference point line as the centerReferencePoint is the default. [import]uid: 147305 topic_id: 31768 reply_id: 126828[/import]

Thank you! Good stuff to know. [import]uid: 178587 topic_id: 31768 reply_id: 126874[/import]

Add

[lua] text.x = display.contentWidth /2
text.y = display.contentHeight /2[/lua]

after you create the text object. You can also get rid of the set reference point line as the centerReferencePoint is the default. [import]uid: 147305 topic_id: 31768 reply_id: 126828[/import]

Thank you! Good stuff to know. [import]uid: 178587 topic_id: 31768 reply_id: 126874[/import]