mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-19 10:12:50 +08:00

* Adding a dark mode * Adding reference for types to summary pages * Adding API Reference * Adding modifiers to methods/fields/etc * Minimizing files input * Caching a lot of the output pages * Cache only for each execution * Adding API references to existing docs
32 lines
623 B
Markdown
32 lines
623 B
Markdown
Title: Figlet
|
|
Order: 50
|
|
RedirectFrom: figlet
|
|
Description: "*Spectre.Console* can render FIGlet text by using the **FigletText** class."
|
|
Reference: T:Spectre.Console.FigletText
|
|
---
|
|
|
|
Spectre.Console can render [FIGlet](http://www.figlet.org/) text by using the `FigletText` class.
|
|
|
|
## Default font
|
|
|
|
```csharp
|
|
AnsiConsole.Write(
|
|
new FigletText("Hello")
|
|
.LeftAligned()
|
|
.Color(Color.Red));
|
|
```
|
|
|
|
<?# AsciiCast cast="figlet" /?>
|
|
|
|
|
|
## Custom font
|
|
|
|
```csharp
|
|
var font = FigletFont.Load("starwars.flf");
|
|
|
|
AnsiConsole.Write(
|
|
new FigletText(font, "Hello")
|
|
.LeftAligned()
|
|
.Color(Color.Red));
|
|
```
|