input: configurable key/text bindings, font resize, and fullscreen

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I671e429c3d4e4f3c82f4a15fed0ac73d6a6a6964
This commit is contained in:
raf 2026-06-25 11:03:15 +03:00
commit 9a680ab42e
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
5 changed files with 429 additions and 41 deletions

View file

@ -116,6 +116,12 @@ impl Renderer {
self.pad = (pad_x as i32, pad_y as i32);
}
/// Rebuild the font set at a new size (font-resize bindings).
pub fn set_font(&mut self, family: &str, size_px: u32) -> Result<(), crate::font::FontError> {
self.fonts = Fonts::new(family, size_px)?;
Ok(())
}
/// Fill the whole buffer (including the padding margins) with the background
/// colour. Called once per fresh shm buffer; per-row repaints then leave the
/// margins untouched.