diff --git a/src/main.rs b/src/main.rs index 520cda6..6aede2e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -201,7 +201,7 @@ impl FramebufferWriter { .horizontal_line_metrics(12.0) .unwrap() .new_line_size - .ceil() as usize; + .ceil() as usize + 1; let char_width = font.metrics('a', 12.0).advance_width.ceil() as usize; println!( "Buffer is {}x{} px, ({} chars x {} lines)",