#ascii #ascii-art #figlet #font #literals #fi-glet #kerning

no-std figleter

Rust implementation of FIGlet to create ascii art. With kerning.

3 releases

0.2.2 Aug 22, 2024
0.2.1 Aug 22, 2024
0.2.0 Aug 22, 2024

#112 in No standard library

Download history 337/week @ 2024-08-19 5/week @ 2024-08-26

342 downloads per month
Used in figlet-comment

Apache-2.0

28KB
626 lines

figleter

docs crates.io

A Rust library for FIGlet to generate ascii art. It is a fork from figlet-rs with kerning support.

Example

use figleter::FIGfont;

fn main() {
    let standard_font = FIGfont::standard().unwrap();
    let figure = standard_font.convert("Hello Rust");
    assert!(figure.is_some());
    println!("{}", figure.unwrap());
}

figlet-sample

License

figleter is distributed under the terms of the Apache License (Version 2.0).

See LICENSE-APACHE and COPYRIGHT for details.


lib.rs:

you can visit figlet and figfont to find more details. you can visit fongdb to find more font.

Examples

download small.flf and place it to the resources folder.

convert string literal using standard or specified font:

use figleter::FIGfont;

let standard_font = FIGfont::standard().unwrap();
let figure = standard_font.convert("FIGlet");
assert!(figure.is_some());

let small_font = FIGfont::from_file("resources/small.flf").unwrap();
let figure = small_font.convert("FIGlet");
assert!(figure.is_some());

No runtime deps