EPS import: adapt text runs to inline art, refresh Cargo.lock

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Matthew Farrow
2026-10-09 03:49:49 -04:00
co-authored by Claude Sonnet 5.5
parent 319e60125f
commit 964985b68c
2 changed files with 4 additions and 2 deletions
Generated
+2
View File
@@ -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",
+2 -2
View File
@@ -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;