tui-big-text 0.3.1

A simple Ratatui widget for displaying big text using the font8x8 crate in a TUI (Terminal UI).
Documentation

tui-big-text

Crates.io License Docs.rs Dependency Status Codecov Discord

tui-big-text is a rust crate that renders large pixel text as a ratatui widget using the glyphs from the font8x8 crate.

Example Made with VHS

Installation

cargo add ratatui tui-big-text

Example

use anyhow::Result;
use ratatui::prelude::*;
use tui_big_text::BigTextBuilder;

fn render(frame: &mut Frame) -> Result<()> {
    let big_text = BigTextBuilder::default()
        .style(Style::new().blue())
        .lines(vec![
            "Hello".red().into(),
            "World".white().into(),
            "~~~~~".into(),
        ])
        .build()?;
    frame.render_widget(big_text, frame.size());
    Ok(())
}

License

Copyright (c) 2023 Josh McKinney

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.