display.newText problem

Hi
Im trying to load a small paragraph from the database and display it on the screen. I use display.newText to do so but the whole para graph is displayed in one line and it extends out side the screen. Is there a solution to this problem. can it be done with out scroll view, The paragraph isn’t that big. [import]uid: 115284 topic_id: 23965 reply_id: 323965[/import]

See build 774.

I haven’t tested it, but its fix was for Text problems. [import]uid: 19626 topic_id: 23965 reply_id: 96584[/import]

It sounds to me like you aren’t specifying the extra width/height parameters for display.newText.

Try:

display.newText("Put your longer paragraph text here to test", 0, 0, 300, 0, "Helvetica", 15)  

Syntax: display.newText( [parentGroup,] string, left, top, [width, height,] font, size )

Most people don’t specify the width and height and therefore your newText won’t try and wrap the text at all.

If you are already doing the above then im not sure whats wrong… [import]uid: 69826 topic_id: 23965 reply_id: 96599[/import]

Good call @TandGapps, that is very likely the problem. Unless you take extra steps to set a width, display.newText will put everything on one line. [import]uid: 19626 topic_id: 23965 reply_id: 96615[/import]

Thanks guys , you were right i wasn’t giving the extra parameters. this is some thing new thanks again. [import]uid: 115284 topic_id: 23965 reply_id: 96810[/import]

local text1 = display.newText("???", 0, 0, 320, 480, native.systemFont, 23);
text1:setTextColor( 255, 0, 255);
local basedir = system.DocumentsDirectory;
display.save(text1, “prepage.jpg”, basedir);

the prepage.jpg’s size need 320x480, why I checked the size in disk is 240x360?

why I get the small size picture?

Thanks [import]uid: 38309 topic_id: 23965 reply_id: 112426[/import]