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

+4
View File
@@ -14,6 +14,7 @@ use texrra_tex_core::{
fn body_style() -> ParagraphStyle {
let font = Cmr10Metrics::default();
ParagraphStyle {
font_size: 10 * 65_536,
line_width: 480 * 65_536,
left_skip: 0,
right_skip: 0,
@@ -185,6 +186,7 @@ fn route_d_page_matches_pdftex_raster_geometry() {
std::fs::create_dir_all(&root).expect("create raster dir");
let style = ParagraphStyle {
font_size: 10 * 65_536,
line_width: 480 * 65_536,
left_skip: 0,
right_skip: 0,
@@ -365,6 +367,7 @@ fn route_d_two_pages_match_pdftex_raster_geometry() {
std::fs::create_dir_all(&root).expect("create raster dir");
let style = ParagraphStyle {
font_size: 10 * 65_536,
line_width: 480 * 65_536,
left_skip: 0,
right_skip: 0,
@@ -717,6 +720,7 @@ fn route_d_multiline_bands_track_pdftex() {
let text = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu";
let style = ParagraphStyle {
font_size: 10 * 65_536,
line_width: 150 * 65_536,
left_skip: 0,
right_skip: 0,