.. default-domain:: py .. highlight:: py .. currentmodule:: Drawing Text ==== .. class:: Text Text. Created using :meth:`add_text`. | Base class: :class:`Drawable` .. container:: inherited-members .. rubric:: Inherited Members * From :class:`Drawable`: :attr:`~Drawable.visible`, :attr:`~Drawable.color`, :attr:`~Drawable.material`, :meth:`~Drawable.remove` .. attribute:: position Position of the text. :Attribute: Can be read or written :rtype: tuple(float, float, float) :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: rotation Rotation of the text as a quaternion. :Attribute: Can be read or written :rtype: tuple(float, float, float, float) :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: face_camera Whether the text turns to face the camera, in place of its :attr:`Text.rotation`. :Attribute: Can be read or written :rtype: bool :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: reference_frame Reference frame for the positions of the object. :Attribute: Can be read or written :rtype: :class:`SpaceCenter.ReferenceFrame` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: content The text string :Attribute: Can be read or written :rtype: str :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: font Name of the font :Attribute: Can be read or written :rtype: str :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. staticmethod:: available_fonts() A list of all available fonts. :rtype: list(str) :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: size Font size. :Attribute: Can be read or written :rtype: int :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: character_size Character size. :Attribute: Can be read or written :rtype: float :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: style Font style. :Attribute: Can be read or written :rtype: :class:`UI.FontStyle` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: alignment Alignment. :Attribute: Can be read or written :rtype: :class:`UI.TextAlignment` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: line_spacing Line spacing. :Attribute: Can be read or written :rtype: float :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph .. attribute:: anchor Anchor. :Attribute: Can be read or written :rtype: :class:`UI.TextAnchor` :Game Scenes: Flight, Tracking Station, Editor Vab, Editor Sph