DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge #331: Compose: page numbers take the Digits setting of their text
aiongg9a0e26a6a1c5
diff --cc crates/compose/src/shape.rsindex 171ca30d4,844ddfcf9..792de171d--- a/crates/compose/src/shape.rs+++ b/crates/compose/src/shape.rs@@@ -777,10 -588,12 +779,12 @@@ fn shape_run_raw} else {sub.page_name.clone().unwrap_or_else(|| "#".into())};+ // Page numbers take the digits of the text they stand in.+ let s: String = s.chars().map(|ch| digits.map(ch, &p.language)).collect();- shape_segment(db, text, i..i + c.len_utf8(), Some(&s), p, &primary, auto_leading, style, out, sub.vertical);+ shape_segment(db, text, i..i + c.len_utf8(), Some(&s), p, &primary, auto_leading, styles, out, sub.vertical);}designcraft_doc::OBJECT_MARK => {- let mut g = control_glyph(&primary, p, auto_leading, style, i, c);+ let mut g = control_glyph(&primary, p, auto_leading, styles.at(i), i, c);if let Some(o) = sub.objects.get(&i).filter(|o| !o.custom) {let auto = matches!(p.leading, Leading::Auto);match o.y_offset {