rulet 2.0.0

A rusty figlet implementation
Documentation
#![deny(missing_docs)]
//! ```plain
//!           ____  _   _ _     _____ _____         
//!   _____  |  _ \| | | | |   | ____|_   _|  _____
//!  |_____| | |_) | | | | |   |  _|   | |   |_____|
//!  |_____| |  _ <| |_| | |___| |___  | |   |_____|
//!          |_| \_\\___/|_____|_____| |_|          
//!                                                 
//! ```
//!
//! A crate for drawing FIGlets.
//!
//! The most basic way to use it is as follows:
//! ```rust
//!     use rulet::*
//!
//!     let input = "Hello World!";
//!     let figure = figlet::FIGure::from_text(input);
//!     println!("{figure}");
//! ```
//! which will print:
//! ```plain
//!   _   _      _ _        __        __         _     _ _
//!  | | | | ___| | | ___   \ \      / /__  _ __| | __| | |
//!  | |_| |/ _ \ | |/ _ \   \ \ /\ / / _ \| '__| |/ _` | |
//!  |  _  |  __/ | | (_) |   \ V  V / (_) | |  | | (_| |_|
//!  |_| |_|\___|_|_|\___/     \_/\_/ \___/|_|  |_|\__,_(_)
//!
//! ```
//! in the default `standard` FIGfont. To use another one, you can use [FIGfont]:
//!
//! ```rust
//!     use rulet::*;
//!
//!     let input = "Hello World!";
//!     let font_path = "./small.flf";
//!     let font = FIGfont::from_file(font_path)?;
//!     let figure = FIGure::from_text_with_font(input, &font);
//!     println!("{figure}");
//! ```
//! which will use the given FIGfont, in this case, `small`:
//! ```plain
//!   _  _     _ _      __      __       _    _ _
//!  | || |___| | |___  \ \    / /__ _ _| |__| | |
//!  | __ / -_) | / _ \  \ \/\/ / _ \ '_| / _` |_|
//!  |_||_\___|_|_\___/   \_/\_/\___/_| |_\__,_(_)
//!
//! ```
//!
//! You can also load zipped fonts if you enable the `zip` crate feature

mod figchar;
mod figline;
mod figure;
mod smush_subchars;

#[doc(no_inline)]
pub use figfont::FIGfont;
pub use figure::FIGure;
pub use figure::Options;

#[cfg(test)]
mod tests {
    use figure::Options;

    use crate::*;

    #[test]
    fn basic_writing() {
        let input = "i should make \n proper tests...";
        let options = Options::default().max_width(Some(1000));
        let figure = FIGure::new(input, FIGfont::standard().unwrap(), options);
        println!("{figure}");
    }
}