Page 1 of 1

PostPosted: Fri Jul 05, 2002 9:52 pm
by design4use
I would like to see a draw.stringWidth(string), that returns the width in pixels based of a string passed, based on current font settings for the draw object

PostPosted: Fri Jul 05, 2002 9:55 pm
by design4use
Apoligies, should have read the doc more thouroughly. draw.textWidth already exists, yeah!
While we are at it, draw.text could use wrapping functionality, e.g. by passing in an additional int parameter, something like maxWidth maybe, that would cause the text to wrap if the given maxWidth is exceeded.