mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-26 21:22:50 +08:00

* Adding social card infrastructure * Upgrades doc project to .NET 6 * Adds Playwright * Changes the console to a web project for Playwright * Adds social card template * Added blog content * Parallelized social image processing * Updating CI to use .NET 6 for docs build
31 lines
585 B
Markdown
31 lines
585 B
Markdown
Title: Figlet
|
|
Order: 50
|
|
RedirectFrom: figlet
|
|
Description: "*Spectre.Console* can render FIGlet text by using the **FigletText** class."
|
|
---
|
|
|
|
Spectre.Console can render [FIGlet](http://www.figlet.org/) text by using the `FigletText` class.
|
|
|
|
## Default font
|
|
|
|
```csharp
|
|
AnsiConsole.Render(
|
|
new FigletText("Hello")
|
|
.LeftAligned()
|
|
.Color(Color.Red));
|
|
```
|
|
|
|
<?# AsciiCast cast="figlet" /?>
|
|
|
|
|
|
## Custom font
|
|
|
|
```csharp
|
|
var font = FigletFont.Load("starwars.flf");
|
|
|
|
AnsiConsole.Render(
|
|
new FigletText(font, "Hello")
|
|
.LeftAligned()
|
|
.Color(Color.Red));
|
|
```
|