tweak(pagination): safety_h=1.0 to reduce underfill
This commit is contained in:
@@ -6,7 +6,7 @@ use crate::theme::{self, BgType, Theme};
|
||||
pub fn recalculate_pages(book: &mut Book, font_size: f32, line_height: f32, panel_width: f32, panel_height: f32, style: &StyleProfile) {
|
||||
let char_width = font_size * 1.0;
|
||||
let safety_w = 0.95;
|
||||
let safety_h = 0.96;
|
||||
let safety_h = 1.0;
|
||||
let chars_per_line = if char_width > 0.0 {
|
||||
((panel_width / char_width) * safety_w).max(1.0) as usize
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user