Text¶
Renders a Component using Minecraft's font renderer.
Supports optional uniform scaling, a custom font face, and an ARGB text color. The node automatically sizes itself to the minimum dimensions needed to display the text at the requested scale.
Example¶
Parameters¶
-
text: The text component to render.
-
fontScale: Uniform scale applied to the font. Default
1f(native size). -
font: The Font used for rendering and size measurement.
-
color: Text color. Defaults to the current
LocalTheme's light text color. -
dropShadow: Whether to render the vanilla text drop shadow. Default
true. -
modifier: Additional modifiers applied to the layout node.