idunno
13 years agoVisitor
roScreen drawText Line Break
I have a function for use with roImageCanvas that takes a sentence pulled from an xml file, cuts the length of the sentence to a certain pixel width, and prints it on the screen. I have been using the function with setlayer to print the words across two horizontal lines, since the setLayer text metadata automatically moves the rest of the sentence to the next line when printed. I am now converting my program to use roScreen instead, and I was wondering if there was a way to make the drawText function automatically go to the next line when the sentence reached a certain width, or if there is a way to force a line break in a string so that the text is spread over two lines?