#ascii-art #ascii #figlet #font #convert #create #fi-glet

no-std figlet-rs

Rust implementation of FIGlet to create ascii art

6 releases

0.1.5 Feb 14, 2023
0.1.4 Oct 2, 2022
0.1.3 Mar 22, 2020
0.1.2 Jun 23, 2019

#32 in No standard library

Download history 851/week @ 2023-12-11 921/week @ 2023-12-18 648/week @ 2023-12-25 1256/week @ 2024-01-01 1838/week @ 2024-01-08 1600/week @ 2024-01-15 1212/week @ 2024-01-22 1276/week @ 2024-01-29 1068/week @ 2024-02-05 1139/week @ 2024-02-12 1030/week @ 2024-02-19 1292/week @ 2024-02-26 1153/week @ 2024-03-04 1328/week @ 2024-03-11 1255/week @ 2024-03-18 1483/week @ 2024-03-25

5,332 downloads per month
Used in 35 crates (22 directly)

Apache-2.0

22KB
449 lines

figlet-rs

CI docs crates.io

A Rust library for FIGlet to generate ascii art.

Example

use figlet_rs::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

rs-figlet 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 figlet_rs::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