forked from NotAShelf/beer
input: configurable key/text bindings, font resize, and fullscreen
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I671e429c3d4e4f3c82f4a15fed0ac73d6a6a6964
This commit is contained in:
parent
0738ce3b6f
commit
9a680ab42e
5 changed files with 429 additions and 41 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue