Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 2.28 KB

figlet-font-selector.md

File metadata and controls

41 lines (27 loc) · 2.28 KB
description icon
Select your favorite font from here!
pen

Figlet Font Selector

The figlet font selector allows you to flexibly select a Figlet font provided by our own Figlet library, Figletize. It shows you a live preview of the font to show you how your selected font looks like prior to submission.

{% hint style="info" %} FigletTextTools provides default figlet font settings. {% endhint %}

You can simply invoke the selector on your interactive console application by calling the below function like so:

string font = FigletSelector.PromptForFiglet();

Usually, this call is followed by getting a figlet font from the above variable and writing it using the WriteFiglet() function:

var figlet = FigletTools.GetFigletFont(font);
FigletColor.WriteFiglet("Hello!", figlet, ConsoleColors.Green);

Additionally, you can press S to write the desired font name and quickly switch to that font. If you want to cancel, you can press ESC.

The following controls are available for the normal figlet font selector:

KeyAction
ENTERAccept font selection
ESCDiscard changes
HHelp page
LEFT / WHEEL UPPrevious font
RIGHT / WHEEL DOWNNext font
SSelect font from the infobox
SHIFT + SWrite font name
CShows the individual characters with the selected font

The following controls are available for the character showcase:

KeyAction
ENTERGo back
LEFT / WHEEL UPPrevious character
RIGHT / WHEEL DOWNNext character

More details about WriteFiglet() can be found in the below link:

{% content-ref url="../../console-tools/console-writers.md" %} console-writers.md {% endcontent-ref %}