Optional
options: Partial<TextRendererOptions>Margin in pixels to correct badly sliced characters.
Spacing in pixels to correct badly sliced characters.
Range of characters covered by the component defined in number pairs. The default value is [32, 126, 161, 255], this means that the component will render characters from 32 to 126 and from 161 to 255.
The text color
The font family to use
The size of the font in pixels.
The height of the invisible box where the text is rendered
The render layer
The space between chars in pixels
The separation between lines in pixels
X-axis and Y-axis offset
Change the opacity between 1 and 0
Direction in which the text will be rendered.
Text rotation in radians
Smoothing pixels (not recommended for bitmap fonts)
The text to render
The width of the invisible box where the text is rendered
The TextRenderer component allows to render text using font families, colors, and other configuration options.
Example