https://github.com/picrap/figlet
A FIGlet library (easy to use, easy to extend)
https://github.com/picrap/figlet
figlet library nuget
Last synced: 10 months ago
JSON representation
A FIGlet library (easy to use, easy to extend)
- Host: GitHub
- URL: https://github.com/picrap/figlet
- Owner: picrap
- License: mit
- Created: 2018-11-02T21:12:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-11T15:00:25.000Z (almost 2 years ago)
- Last Synced: 2025-07-20T01:06:18.336Z (11 months ago)
- Topics: figlet, library, nuget
- Language: C#
- Homepage:
- Size: 138 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
___ ___ ___ _ _
| __|_ _/ __| |___| |_
| _| | | (_ | / -_) _|
|_| |___\___|_\___|\__|
```
A simple to use (but extensible) FIGlet generator library for .NET framework.
Available as a [](https://www.nuget.org/packages/FIGlet-_-lib) package.
# Features
If you want to know about FIGlet, you can visit the official web site at http://www.figlet.org.
The library supports:
* Loading fonts from text or zip files
* Full size, fitting or smushing as layout modes
* Working canvas items are extensible to hold your own metadata (such as color)
* Has two integrated fonts ('big' and 'small'), for very lazy people.
# Use
The smallest sample:
```csharp
var text = FIGdriver.DefaultFont.Render("Hello, world");
```
With a little more details, another example:
```csharp
// loads a font...
var font = FIGfont.FromEmbeddedResource("small.flf", typeof(FontsRoot));
// ... or use a default font
var font2 = FIGdriver.DefaultFont;
// creates the FIGdriver, which renders the text
var figDriver = new FIGdriver { Font = font /* or font2 */ };
// add some text
figDriver.Write("Hi there!");
figDriver.Write("Great, isn't it?");
// and get the text
var text = figDriver.ToString();
```
# Want more?
[Ask](https://github.com/picrap/FIGlet/issues) or even better, contribute.
Current build status: [](https://ci.appveyor.com/project/picrap/figlet).