Skip to content

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.

csharp
public sealed class FigletTextNode : Hex1bNode

Inheritance ​

Object → Hex1bNode → FigletTextNode

Properties ​

Font ​

Gets or sets the font used to render the text.

Returns: FigletFont

csharp
public FigletFont Font { get; set; }

HorizontalLayout ​

Gets or sets the horizontal layout mode.

Returns: FigletLayoutMode

csharp
public FigletLayoutMode HorizontalLayout { get; set; }

HorizontalOverflow ​

Gets or sets the horizontal overflow behavior.

Returns: FigletHorizontalOverflow

csharp
public FigletHorizontalOverflow HorizontalOverflow { get; set; }

Text ​

Gets or sets the text to render.

Returns: String

csharp
public string Text { get; set; }

VerticalLayout ​

Gets or sets the vertical layout mode.

Returns: FigletLayoutMode

csharp
public FigletLayoutMode VerticalLayout { get; set; }

VerticalOverflow ​

Gets or sets the vertical overflow behavior.

Returns: FigletVerticalOverflow

csharp
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:

Returns: Size

csharp
protected override Size MeasureCore(Constraints constraints)

Render(Hex1bRenderContext) ​

Renders the cached FIGlet lines into context.

Parameters:

csharp
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.

Released under the MIT License.