- class Layout(text=None, markup=None, font_desc=None)#
Layoutclass represents an entire paragraph of text.
Layoutprovides a high-level driver for formatting entire paragraphs of text at once. This includes paragraph-level functionality such as line breaking, justification, alignment and ellipsization.
>>> import manimpango as mp >>> mp.Layout("hello world") <Layout text='hello world' markup=None>
ValueError – If both
- property height: int#
The height to which the text should be ellipsized at.
- property markup: str#
The markup (in pango markup format) to render.