Disable multiline text and keep the same reference point

Hello

On android I have some text boxes that become multiline. But I need them to be single line text boxes, no matter any scaling ecc… If i change

title = display.newText("HelloWorld!" , 0, 0,  "Calibri", \_W \* 0.085)  

to

title = display.newText("HelloWorld!" , 0, 0, \_W, 0,  "Calibri", \_W \* 0.085)  

where _W and _H are display.viewableContentWidth and display.viewableContentHeight

my text doesn’t wrap but I cannot place it precisely where I want because it seems it has padding on both sides

So is there a way I can accomplish this?

Here’s my config.lua

local aspectRatio = display.pixelHeight / display.pixelWidth application = { &nbsp;&nbsp;&nbsp;&nbsp;content = { width = aspectRatio \> 1.5 and 320 or math.ceil( 480 / aspectRatio ), height = aspectRatio \< 1.5 and 480 or math.ceil( 320 \* aspectRatio ), scale = "zoomEven", fps = 30, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, } &nbsp;

Let me try and explain.  The display.newText() function renders a graphic image of the text.  In single line mode, since you don’t specify a width and height, it will return an image that is the exact width needed to hold the text.

When you kick it into multiline mode by adding the width to the call (_W, 0), display.newText() will return an image that is exactly _W pixels wide.  At that point, we have to make a decision on what to do with the text if it’s shorter than the width specified.  The default is to center the text inside the box.  The display.newText() API call supports left, center and right aligning within that box.  You have to use the new way of calling display.newText().  Please see:

http://docs.coronalabs.com/api/library/display/newText.html#multi-line-text-with-alternate-alignment

Or simply leave it in single line mode.  Also this tutorial should explain things too:
 

http://coronalabs.com/blog/2014/02/11/tutorial-methods-for-positioning-text/

Let me try and explain.  The display.newText() function renders a graphic image of the text.  In single line mode, since you don’t specify a width and height, it will return an image that is the exact width needed to hold the text.

When you kick it into multiline mode by adding the width to the call (_W, 0), display.newText() will return an image that is exactly _W pixels wide.  At that point, we have to make a decision on what to do with the text if it’s shorter than the width specified.  The default is to center the text inside the box.  The display.newText() API call supports left, center and right aligning within that box.  You have to use the new way of calling display.newText().  Please see:

http://docs.coronalabs.com/api/library/display/newText.html#multi-line-text-with-alternate-alignment

Or simply leave it in single line mode.  Also this tutorial should explain things too:
 

http://coronalabs.com/blog/2014/02/11/tutorial-methods-for-positioning-text/