Holds a paragraph of text.
Abstraction over [TextServer] for handling a single paragraph 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 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 [param color]. [param pos] specifies the top left corner of the bounding box.
Draw drop cap into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box.
Draw drop cap outline into a canvas item at a given position, with [param color]. [param pos] specifies the top left corner of the bounding box.
Draw single line of text into a canvas item at a given position, with [param color]. [param pos] 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 [param color]. [param pos] 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 [param color]. [param pos] specifies the top left corner of the bounding box.
Returns number of lines used by dropcap.
Returns 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 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.
Line breaking rules. For more info see [TextServer].
Custom punctuation character list, used for word breaking. If set to empty string, server defaults are used.
Text writing direction.
Line fill alignment rules. For more info see [enum TextServer.JustificationFlag].
Limits the lines of text shown.
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 paragraph's set width. See [enum TextServer.OverrunBehavior] for a description of all modes.
Paragraph width.