neoscore.interface.rich_text_interface

class neoscore.interface.rich_text_interface.RichTextInterface[source]

Bases: PositionedObjectInterface

An interface for graphical text objects.

html_text: str
font: FontInterface
width: Optional[Unit] = None
scale: float = 1
rotation: float = 0

Rotation angle in degrees

z_index: int = 0

Z-index controlling draw order.

__init__(pos: Point, html_text: str, font: FontInterface, width: Optional[Unit] = None, scale: float = 1, rotation: float = 0, z_index: int = 0) None
render()[source]

Render the line to the scene.