description | icon |
---|---|
Select your favorite font from here! |
pen |
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:
Key | Action |
---|---|
ENTER | Accept font selection |
ESC | Discard changes |
H | Help page |
LEFT / WHEEL UP | Previous font |
RIGHT / WHEEL DOWN | Next font |
S | Select font from the infobox |
SHIFT + S | Write font name |
C | Shows the individual characters with the selected font |
The following controls are available for the character showcase:
Key | Action |
---|---|
ENTER | Go back |
LEFT / WHEEL UP | Previous character |
RIGHT / WHEEL DOWN | Next 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 %}