Scale paragraphs by their declared base font size

This commit is contained in:
gloamxun committed 2026-10-24 13:04:19 +08:00
1 parent aa4d86d735
commit 9876895a84
8 files changed
+249 -17

No files matched your search

+1 -1
View File
@@ -502,7 +502,7 @@ impl Page {
let face = paragraph_face(paragraph.font);
let lines = paragraph.lines.len().max(1) as i64;
let line_height = (paragraph.height / lines).max(1);
let size = 10 * 65_536;
let size = paragraph.font_size.max(1);
for (line_index, line) in paragraph.lines.iter().enumerate() {
let indent = paragraph.line_indents.get(line_index).copied().unwrap_or(0);
let baseline = y + paragraph