Plush

TextDescription#

PlushEngine · Type index

Namespace: PlushEngine

public sealed record TextDescription(string Content, FontResource Font, float Size = 0.15f, string Color = "#FFFFFF", float Width = 0, string Alignment = "Left", float LineSpacing = 1.2f)

Record properties#

PropertyTypeAccessConstructor default
Contentstringget; init;required
FontFontResourceget; init;required
Sizefloatget; init;0.15f
Colorstringget; init;"#FFFFFF"
Widthfloatget; init;0
Alignmentstringget; init;"Left"
LineSpacingfloatget; init;1.2f

Members: Style

Style#

public Style2D? Style { get; init; }

The shared Style 2D the signed-distance glyphs draw with: fill, gradient, opacity, stroke, glow and shadow. Shape corner radii do not change glyph outlines. Null uses the label's flat colour.

FontResource · Style2D

Source#