Use CMR10 advances for route-D paragraphs and PDF text

This commit is contained in:
gloamxun committed 2026-10-20 22:55:38 +08:00
1 parent 8251e35de2
commit 67915402a6
7 files changed
+45 -19

No files matched your search

+2 -2
View File
@@ -280,7 +280,7 @@ impl Halign {
font: FontFace::Roman,
x,
y: baseline,
size: self.line_height * 5 / 6,
size: 10 * 65_536,
text: cell.text.clone(),
});
}
@@ -375,7 +375,7 @@ impl Page {
};
let lines = paragraph.lines.len().max(1) as i64;
let line_height = (paragraph.height / lines).max(1);
let size = ((line_height as f64) * 0.7) as i64;
let size = 10 * 65_536;
for line in &paragraph.lines {
let baseline = y + ((line_height as f64) * 0.8) as i64;
let natural: i64 = line