# Source code for tabletree.src.api.view_util.text

    from typing import Self

    from .point import Vector3

    class Text:
        _content: str
        _position: list[float]
        _width: float | None
        _height: float | None

        def __init__(
            self,
            content: str,
            position: Vector3,
        ):
            """Create a text.

            Args:
                content:
                    The text content.
                position:
                    The position of the text.
            """
            self._content = content
            self._position = list(position)
            self._width = None
            self._height = None

        def set_options(
            self,
            width: float = 10.0,
            height: float = 15.0,
        ) -> Self:
            """Set options for the text.

            Args:
                width:
                    The width of the letters.
                height:
                    The height of the letters.
            """
            self._width = width
            self._height = height
            return self