Holds a paragraph of text.
Abstraction over [TextServer] for handling paragraph of text.
Adds inline object to the text buffer, [code]key[/code] must be unique. In the text, object is represented as [code]length[/code] object replacement characters.
Adds text span and font to draw it.
Clears text paragraph (removes text and inline objects).
Removes dropcap.
Draw all lines of the text and drop cap into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box.
Draw drop cap into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box.
Draw drop cap outline into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box.
Draw single line of text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box.
Draw outline of the single line of text into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box.
Draw outlines of all lines of the text and drop cap into a canvas item at a given position, with [code]color[/code]. [code]pos[/code] specifies the top left corner of the bounding box.
Returns number of lines used by dropcap.
Return drop cap text buffer RID.
Returns drop cap bounding box size.
Returns the text line ascent (number of pixels above the baseline for horizontal layout or to the left of baseline for vertical).
Returns number of lines in the paragraph.
Returns the text line descent (number of pixels below the baseline for horizontal layout or to the right of baseline for vertical).
Returns bounding rectangle of the inline object.
Returns array of inline objects in the line.
Returns character range of the line.
Returns TextServer line buffer RID.
Returns size of the bounding box of the line of text.
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 line of text.
Returns the size of the bounding box of the paragraph, without line breaks.
Returns TextServer full string buffer RID.
Returns the size of the bounding box of the paragraph.
Returns extra spacing at the bottom of the line. See [member Font.extra_spacing_bottom].
Returns extra spacing at the top of the line. See [member Font.extra_spacing_top].
Returns caret character offset at the specified coordinates. 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.
Sets drop cap, overrides previously set drop cap. Drop cap (dropped capital) is a decorative element at the beginning of a paragraph that is larger than the rest of the text.
Aligns paragraph to the given tab-stops.
Paragraph horizontal alignment.
Text writing direction.
Line breaking and 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.
Paragraph width.