Initialize Minecraft text generator project with basic structure and CLI functionality

This commit is contained in:
2026-03-23 00:56:19 +01:00
commit 55d730d542
20 changed files with 900 additions and 0 deletions

14
crates/lib/src/font.rs Normal file
View File

@@ -0,0 +1,14 @@
/// Represents a single 2D character mapped to a boolean grid.
/// `true` means a block exists, `false` means empty space.
pub struct Glyph {
pub width: u32,
pub height: u32,
pub data: Vec<bool>,
}
pub trait FontProvider {
fn get_glyph(&self, character: char) -> Option<Glyph>;
fn letter_spacing(&self) -> u32 {
1
}
}