Class FigletText
Renders text in a DarkEffekt.Terminal.FigletFont as rows of characters. Lines stack at the font’s full height.
Assembly: DarkEffekt.Terminal.Core
Section titled “Assembly: DarkEffekt.Terminal.Core”public sealed class FigletTextProperties
Section titled “Properties”The font the text is drawn in.
public FigletFont Font { get; }How glyphs are set side by side.
public FigletMode Mode { get; set; }The horizontal smushing rules to use when smushing. Null takes the font’s. DarkEffekt.Terminal.FigletLayout.FullWidth (no rules) gives universal smushing.
public FigletLayout? Rules { get; set; }Direction
Section titled “Direction”The direction glyphs are laid out in. Null takes the font’s.
public FigletDirection? Direction { get; set; }MaxWidth
Section titled “MaxWidth”The widest a row may get, in columns. Longer lines break at spaces, and a word wider than this breaks between glyphs. Zero or less turns wrapping off.
public int MaxWidth { get; set; }Methods
Section titled “Methods”Render(string)
Section titled “Render(string)”The rows of the rendered text, top to bottom, with hardblanks turned to spaces. Each line of the text gives the font’s height in rows, all of one length; a line feed starts a new line. Empty text gives no rows.
public string[] Render(string text)Returns
Section titled “Returns”System.String[]
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
text |