Class FigletRenderer
- Namespace
- SharpConsoleUI.Parsing
- Assembly
- SharpConsoleUI.dll
Renders text using a FIGlet font into lines of plain characters.
public static class FigletRenderer
- Inheritance
-
FigletRenderer
- Inherited Members
Methods
Render(string, FigletFont, int)
Renders the given text using the specified FIGlet font. Returns one string per output line.
public static List<string> Render(string text, FigletFont font, int maxWidth = 0)
Parameters
textstringThe text to render.
fontFigletFontThe FIGlet font to use.
maxWidthintMaximum output width (0 = unlimited).
Returns
RenderJustified(string, FigletFont, int, TextJustification)
Renders text with justification applied.
public static List<string> RenderJustified(string text, FigletFont font, int maxWidth, TextJustification justification)
Parameters
textstringThe text to render.
fontFigletFontThe FIGlet font to use.
maxWidthintMaximum output width for justification.
justificationTextJustificationText justification.
Returns
RenderWrapped(string, FigletFont, int, WrapMode)
Renders text with wrapping support. Each wrapped "row" consists of font.Height lines.
public static List<string> RenderWrapped(string text, FigletFont font, int maxWidth, WrapMode wrapMode)
Parameters
textstringThe text to render.
fontFigletFontThe FIGlet font to use.
maxWidthintMaximum output width for wrapping.
wrapModeWrapModeThe wrapping mode to apply.
Returns
RenderWrappedJustified(string, FigletFont, int, WrapMode, TextJustification)
Renders text with wrapping and justification applied per row.
public static List<string> RenderWrappedJustified(string text, FigletFont font, int maxWidth, WrapMode wrapMode, TextJustification justification)
Parameters
textstringfontFigletFontmaxWidthintwrapModeWrapModejustificationTextJustification