Crate figlet_rs

source ·
Expand description

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());

Structs

the matched ascii art of one character
FIGlet font, which will hold the mapping from u32 code to FIGcharacter
the matched ascii arts of string literal
the first line in FIGlet font, which you can find the documentation headerline