bracket-terminal 0.8.7

ASCII/Codepage 437 terminal emulator with a game loop. Defaults to OpenGL, also support WebGPU (for Vulkan/Metal/WGPU), Curses and Crossterm for output. Part of the bracket-lib family.
Documentation
use crate::BResult;

#[derive(Clone)]
pub struct Font {
    pub tile_size: (u32, u32),
}

impl Font {
    pub fn load<S: ToString>(
        _filename: S,
        _tile_size: (u32, u32),
        _explicit_background: Option<bracket_color::prelude::RGB>,
    ) -> Font {
        Font { tile_size: (0, 0) }
    }

    pub fn setup_gl_texture(&mut self, _gl: &crate::hal::BTermPlatform) -> BResult<()> {
        Ok(())
    }

    pub fn bind_texture(&self, _gl: &crate::hal::BTermPlatform) {}
}