Fills text and includes a maximum width of the string.
If the width of the text extends past max width, then it will be sized
to fit.
A null text value will be ignored.
This method will be affected by any of the global common, fill, or text attributes as specified in the Rendering Attributes Table.
text | the string of text or null. | |
x | position on the x axis. | |
y | position on the y axis. | |
maxWidth | maximum width the text string can have. |
Diagram: Canvas