Holds a line of text.
Abstraction over TextServer for handling a single line of text.
Sets text alignment within the line as if the line was horizontal.
Adds inline object to the text buffer, key must be unique. In the text, object is represented as length object replacement characters.
Adds text span and font to draw it.
Draw text into a canvas item at a given position, with color. pos specifies the top left corner of the bounding box. If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
Draw text into a canvas item at a given position, with color. pos specifies the top left corner of the bounding box. If oversampling is greater than zero, it is used as font oversampling factor, otherwise viewport oversampling settings are used.
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 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.