Use Computer Modern math metrics for route-D formulas

This commit is contained in:
gloamxun committed 2026-10-24 01:31:51 +08:00
1 parent c9ad1e209a
commit 8f675bcabd
7 files changed
+108 -14

No files matched your search

+1 -1
View File
@@ -925,7 +925,7 @@ fn build_document(paragraphs: &[SourceParagraph], geometry: &PageGeometry) -> Do
}
}
if paragraph.math {
let font = Cmr10Metrics::default();
let font = Cmr10Metrics::Math;
let atom = parse_math(&paragraph.text);
let lines = split_math_lines(&atom, &font, 480 * SCALE);
let mut unit = Unit::math_lines(index as u64, &lines, &font);