aryagraph.style.text.wrap#
- aryagraph.style.text.wrap(text: str, max_width: float, size: float, weight: int | str = 400, max_lines: int = 3) list[str][source]#
Break text into lines no wider than max_width.
Breaks prefer whitespace, then
_ - / .and camelCase boundaries. The last allowed line is ellipsised when the text does not fit in max_lines.