lindisfarner 0.1.2

Illuminate or vandalize text and code with ASCII art in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Developer aid: dump a few embedded blackletter glyphs to stdout so the
//! Fraktur font can be eyeballed without running the whole pipeline.
//! Run with `cargo run --example preview`.

use figlet_rs::FIGfont;
fn main() {
    let font = FIGfont::from_content(include_str!("../fonts/fraktur.flf")).unwrap();
    for s in ["A", "W", "I", "T", "M", "S"] {
        println!("=== {s} ===");
        match font.convert(s) {
            Some(f) => println!("{}", f),
            None => println!("(no glyph)"),
        }
    }
}