diff --git a/src/buffer.rs b/src/buffer.rs index fa93b1e..43e4858 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -843,7 +843,7 @@ impl<'a> TextBuffer<'a> { /// Draw the buffer #[cfg(feature = "swash")] - pub fn draw(&mut self, cache: &mut crate::SwashCache, color: u32, mut f: F) + pub fn draw(&self, cache: &mut crate::SwashCache, color: u32, mut f: F) where F: FnMut(i32, i32, u32, u32, u32) { let font_size = self.metrics.font_size;