text
Processes a list of text strings to generate text tokens and optionally renders them.
This method joins the provided list of strings using newline characters, then calculates and returns a list of TextToken
instances representing the layout and typesetting results. If the visible
parameter is set to true, the text is also rendered visually.
Return
a list of TextToken
instances representing the processed text tokens
Parameters
text
a list of strings to be combined and processed as text
visible
determines whether the text should be rendered (true) or just typeset (false). Default is true.
Draw text
Return
a list of TextToken instances
Parameters
text
the text to write, may contain newlines
visible
draw the text when set to true, when set to false only type setting is performed