Holds a line of text. Abstraction over [TextServer] for handling a single line of text. Adds inline object to the text buffer, [param key] must be unique. In the text, object is represented as [param length] object replacement characters. Adds text span and font to draw it. Clears text line (removes text and inline objects). Draw text into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box. Draw text into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box. Returns the text ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical). Returns the text descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical). Returns pixel offset of the underline below the baseline. Returns thickness of the underline. Returns width (for horizontal layout) or height (for vertical) of the text. Returns bounding rectangle of the inline object. Returns array of inline objects. Returns TextServer buffer RID. Returns size of the bounding box of the text. Returns caret character offset at the specified pixel offset at the baseline. This function always returns a valid position. Sets new size and alignment of embedded object. Overrides BiDi for the structured text. Override ranges should cover full source text without overlaps. BiDi algorithm will be used on each range separately. Aligns text to the given tab-stops. Sets text alignment within the line as if the line was horizontal. Text writing direction. Ellipsis character used for text clipping. Line alignment rules. For more info see [TextServer]. Text orientation. If set to [code]true[/code] text will display control characters. If set to [code]true[/code] text will display invalid characters. Sets the clipping behavior when the text exceeds the text line's set width. See [enum TextServer.OverrunBehavior] for a description of all modes. Text line width.