VectorCraft: An open-source, vector art tool written by scratch in pure Rust
EPS import: adapt text runs to inline art, refresh Cargo.lock
Matthew Farrow964985b68c50
diff --git a/Cargo.lock b/Cargo.lockindex b7bc08f4c..2da7e7544 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -4445,6 +4445,7 @@ dependencies = ["kurbo 0.13.1","log","proptest",+ "ruzstd","serde","serde_json","thiserror 2.0.21",@@ -4476,6 +4477,7 @@ dependencies = ["flate2","image","kurbo 0.13.1",+ "ruzstd","vectorcraft-brush","vectorcraft-color","vectorcraft-doc",diff --git a/crates/eps/src/import/ate.rs b/crates/eps/src/import/ate.rsindex 1e1a66dd3..c5d7d8ab5 100644--- a/crates/eps/src/import/ate.rs+++ b/crates/eps/src/import/ate.rs@@ -475,11 +475,11 @@ impl Story {if piece.is_empty() {continue;}- runs.push(TextRun { text: piece, style: char_style(st, scale, leading) });+ runs.push(TextRun::new(piece, char_style(st, scale, leading)));}if from < chars.len() {let last = self.runs.last().map(|r| &r.1)?;- runs.push(TextRun { text: chars.get(from..).unwrap_or_default().iter().collect(), style: char_style(last, scale, leading) });+ runs.push(TextRun::new(chars.get(from..).unwrap_or_default().iter().collect::<String>(), char_style(last, scale, leading)));}if runs.is_empty() {return None;