FigletTextNode
Namespace: Hex1b.Nodes
Assembly: Hex1b.dll
Render node for . Caches the rendered FIGlet block keyed by the inputs (text, font, layout, wrap width) and emits the result line-by-line during render.
public sealed class FigletTextNode : Hex1bNodeInheritance
Object → Hex1bNode → FigletTextNode
Properties
Font
Gets or sets the font used to render the text.
Returns: FigletFont
public FigletFont Font { get; set; }HorizontalLayout
Gets or sets the horizontal layout mode.
Returns: FigletLayoutMode
public FigletLayoutMode HorizontalLayout { get; set; }HorizontalOverflow
Gets or sets the horizontal overflow behavior.
Returns: FigletHorizontalOverflow
public FigletHorizontalOverflow HorizontalOverflow { get; set; }Text
Gets or sets the text to render.
Returns: String
public string Text { get; set; }VerticalLayout
Gets or sets the vertical layout mode.
Returns: FigletLayoutMode
public FigletLayoutMode VerticalLayout { get; set; }VerticalOverflow
Gets or sets the vertical overflow behavior.
Returns: FigletVerticalOverflow
public FigletVerticalOverflow VerticalOverflow { get; set; }Methods
MeasureCore(Constraints)
Measures the FIGlet text within the supplied constraints. Width is the maximum display width of any rendered line; height is the total line count.
Parameters:
constraints(Constraints):
Returns: Size
protected override Size MeasureCore(Constraints constraints)Render(Hex1bRenderContext)
Renders the cached FIGlet lines into context.
Parameters:
context(Hex1bRenderContext):
public override void Render(Hex1bRenderContext context)Remarks
The node deliberately does not emit any ANSI color codes so that a wrapping EffectPanel can colorize the surface cells produced by this node.