Scale paragraphs by their declared base font size
This commit is contained in:
1 parent
aa4d86d735
commit
9876895a84
8 files changed
+249
-17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user