From 9584efb6332abf75e60cf0172de9d5a8c3b2498d Mon Sep 17 00:00:00 2001
From: Tanish Manku
Date: Mon, 9 Nov 2026 01:34:48 -0700
Subject: [PATCH 01/25] docs: parallel milestone tracks; AniCraft name settled
by the project lead
---
.gitignore | 3 +++
AGENTS.md | 12 ++++++++++++
docs/legal/compliance.md | 5 +++--
docs/roadmap.md | 19 +++++++++++++++++++
4 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index b037d9d3..07d2156d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,6 @@
*.swp
.DS_Store
Thumbs.db
+
+# parallel milestone worktrees (AGENTS.md › Milestone tracks)
+/.worktrees/
diff --git a/AGENTS.md b/AGENTS.md
index f6ccc090..e992a026 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -91,6 +91,18 @@ a new crate needs a row here and in its `LAYERS` table.
Run `git config core.hooksPath scripts/git-hooks` once per clone.
* Branches marked hidden in your local git config (`git config --add anicraft.hidden `)
never leave the machine: `pre-push` refuses them and anything built on them.
+* **Milestone tracks.** Milestones that don't depend on unfinished work run in parallel, one
+ agent per track (`docs/roadmap.md` › Parallel tracks). Each track works in its own git
+ worktree under `.worktrees/` (git-ignored), on branches named `m/`, and
+ every commit subject and PR title ends with its milestone, e.g.
+ `feat(audio): audio layers with waveforms (M5)`. Worktrees share the one `target/` through
+ `CARGO_TARGET_DIR`. Before opening or updating a PR, rebase on `origin/main` and keep shared
+ files (CHANGELOG, roadmap, Cargo.lock, the workspace map) conflict-free. A track never merges
+ its own PR: the lead reviews it (principal engineer and senior designer) and merges it when
+ CI is green.
+* **Outside pull requests** that match a roadmap task are reviewed and their good ideas
+ considered. The work stays first-party: a track waits on an outside PR only if it is
+ complete and fits our architecture and flow.
* Commit in small, green steps (build + tests pass), with conventional messages:
`feat(render): …`, `fix(engine): …`, `docs: …`, `perf: …`, `test: …`. Record measured
numbers in `perf:` commit bodies.
diff --git a/docs/legal/compliance.md b/docs/legal/compliance.md
index 2344496a..fde45ff8 100644
--- a/docs/legal/compliance.md
+++ b/docs/legal/compliance.md
@@ -92,7 +92,8 @@ cargo deny check advisories # RustSec security advisories (needs ne
* "ActionScript" is also an Adobe trademark. Docs and compatibility messages (import reports,
the language a kept script is written in) name it nominatively; the features themselves have
generic names (Actions panel, frame scripts, Test Movie). See ADR 0013.
-* "AniCraft": a trademark clearance search has not been done yet (open item below).
+* "AniCraft": the project lead accepted the name (2026-11-09). No formal clearance search was
+ done; that was their decision.
## 6. Release checklist (before any public binary)
@@ -109,6 +110,6 @@ cargo deny check advisories # RustSec security advisories (needs ne
| Item | Status |
|---|---|
| Counsel review of this document (patents, XFL interoperability, ActionScript compatibility and naming) | Open, before the first public release |
-| "AniCraft" trademark clearance | Open |
+| "AniCraft" trademark clearance | Settled by the project lead (2026-11-09): the name is kept |
| Freedom-to-operate patent search for core animation features | Open (recommended before 1.0) |
| Full licence-text bundle generation (`cargo about`) in the release pipeline | Open (M8) |
diff --git a/docs/roadmap.md b/docs/roadmap.md
index 432ab66d..52eee30c 100644
--- a/docs/roadmap.md
+++ b/docs/roadmap.md
@@ -39,6 +39,25 @@ milestone ends with a green tree: build, tests, clippy, a `--screenshot` check a
**v0.1.0 (early alpha)** marks M0 + M1 complete (see `CHANGELOG.md`). `main` starts with
that one commit; publishing it follows the checklist in `docs/release.md`.
+## Parallel tracks (from 2026-11-09)
+
+Milestones whose next task needs no unfinished work from another milestone run at the same time,
+one agent per track (AGENTS.md › Milestone tracks). Each task is still its own PR to `main`,
+titled with its milestone.
+
+| Track | Next task | Depends on (all done) |
+|---|---|---|
+| M2 | Motion tweens with property curves and the Motion Editor | timeline evaluation, classic tweens |
+| M3 | GPU stage renderer, first slice, behind a feature flag with parity tests | CPU oracle, tiled stage |
+| M4 | Text from Animate files | XFL import, text engine (M5 first slice) |
+| M5 | Audio layers: import, waveform, playback sync | timeline, layers |
+| M6 | WebAssembly plug-ins (U2) | command registry |
+| M7 | Variable-width strokes | strokes, Pen and Pencil |
+| M8 | Crash-recovery autosave | `.anicraft` format, session |
+
+Tasks that wait on an open track: XFL motion tweens (on M2's motion tweens); frame scripts and
+ActionScript (on M6's plug-in host); GPU as the default stage (on M3's parity).
+
## Current focus (after M0 + scale foundations)
The person confirmed that opening Animate files (XFL) is the first interchange priority. The
From d69ead2afc684a27fad5fe65a71016faad7a0ba1 Mon Sep 17 00:00:00 2001
From: Tanish Manku
Date: Mon, 9 Nov 2026 01:51:04 -0700
Subject: [PATCH 02/25] feat(xml): keep elements' character data (M4)
---
crates/xml/src/lib.rs | 50 ++++++++++++++++++++++++++++++++++++-------
1 file changed, 42 insertions(+), 8 deletions(-)
diff --git a/crates/xml/src/lib.rs b/crates/xml/src/lib.rs
index 809ebaa8..50af7773 100644
--- a/crates/xml/src/lib.rs
+++ b/crates/xml/src/lib.rs
@@ -1,9 +1,11 @@
//! AniCraft XML (layer L0): a small, strict-enough XML element reader shared by the importers.
//!
//! XFL and SVG keep everything that matters in elements and attributes (XFL even stores shape
-//! geometry as an attribute), so the reader builds a tree of elements with attributes and
-//! ignores text. It handles the prolog, comments, CDATA, doctype, processing instructions, the
-//! five standard entities and numeric character references. Limits on input size, depth and
+//! geometry as an attribute), so the reader builds a tree of elements with attributes. An
+//! element's own character data (text and CDATA, such as XFL's ``) is kept in
+//! [`Element::text`], except whitespace-only text between child elements (indentation). It
+//! handles the prolog, comments, CDATA, doctype, processing instructions, the five standard
+//! entities and numeric character references. Limits on input size, depth and
//! element count keep a hostile file from exhausting memory or the stack. Never panics.
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
@@ -19,6 +21,9 @@ pub struct Element {
pub name: String,
pub attrs: HashMap,
pub children: Vec,
+ /// The element's character data, entities resolved (XFL's ``). Whitespace
+ /// between child elements is dropped.
+ pub text: String,
}
impl Element {
@@ -98,16 +103,32 @@ impl P<'_> {
}
Ok(String::from_utf8_lossy(self.s.get(start..self.i).unwrap_or_default()).into_owned())
}
- /// Skips text, comments and other non-element content up to the next tag.
- fn skip_misc(&mut self) -> Result<(), XmlError> {
+ /// Skips text, comments and other non-element content up to the next tag, adding text and
+ /// CDATA to `text` when there is one.
+ fn skip_misc(&mut self, mut text: Option<&mut String>) -> Result<(), XmlError> {
loop {
+ let start = self.i;
while self.peek().is_some_and(|c| c != b'<') {
self.i += 1;
}
+ if let Some(t) = text.as_deref_mut()
+ && self.i > start
+ {
+ let raw = String::from_utf8_lossy(self.s.get(start..self.i).unwrap_or_default());
+ if raw.contains('&') {
+ t.push_str(&unescape(&raw));
+ } else {
+ t.push_str(&raw);
+ }
+ }
if self.starts(b"")?;
} else if self.starts(b"")?;
+ if let Some(t) = text.as_deref_mut() {
+ t.push_str(&String::from_utf8_lossy(self.s.get(from..self.i.saturating_sub(3)).unwrap_or_default()));
+ }
} else if self.starts(b"") {
self.skip_until(b"?>")?;
} else if self.starts(b" {
}
// Content: children until the matching end tag.
loop {
- self.skip_misc()?;
+ self.skip_misc(Some(&mut el.text))?;
if self.peek().is_none() {
return self.err("missing end tag");
}
@@ -186,6 +207,9 @@ impl P<'_> {
return self.err("mismatched end tag");
}
self.i += 1;
+ if !el.children.is_empty() && el.text.trim().is_empty() {
+ el.text = String::new();
+ }
return Ok(el);
}
el.children.push(self.element(depth + 1)?);
@@ -244,7 +268,7 @@ pub fn parse(src: &[u8]) -> Result {
// A UTF-8 byte-order mark is allowed.
let src = src.strip_prefix(b"\xEF\xBB\xBF").unwrap_or(src);
let mut p = P { s: src, i: 0, count: 0 };
- p.skip_misc()?;
+ p.skip_misc(None)?;
if p.peek().is_none() {
return p.err("no root element");
}
@@ -271,7 +295,17 @@ mod tests {
let tl = &root.list("timelines")[0];
assert_eq!(tl.attr("name"), Some("Scene & \"1\" AB"));
assert!(tl.list("layers").is_empty());
- assert_eq!(root.children.len(), 1, "CDATA and text are skipped");
+ assert_eq!(root.children.len(), 1, "CDATA and text are not elements");
+ assert!(root.text.contains(" ") && root.text.contains("text is ignored"), "{:?}", root.text);
+ }
+
+ #[test]
+ fn character_data_is_kept_and_indentation_dropped() {
+ let x = b"\n a <b>
line 2 \n z \n ";
+ let root = parse(x).unwrap();
+ assert_eq!(root.text, "", "whitespace between elements");
+ let texts: Vec<&str> = root.children.iter().map(|c| c.text.as_str()).collect();
+ assert_eq!(texts, ["a \rline 2", " ", "x
Date: Mon, 9 Nov 2026 01:51:05 -0700
Subject: [PATCH 03/25] feat(text): find faces by PostScript name, guess
families, report line metrics (M4)
---
crates/text/src/lib.rs | 138 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 137 insertions(+), 1 deletion(-)
diff --git a/crates/text/src/lib.rs b/crates/text/src/lib.rs
index 950dfa6d..901dbfc3 100644
--- a/crates/text/src/lib.rs
+++ b/crates/text/src/lib.rs
@@ -13,6 +13,12 @@ use std::sync::{Arc, OnceLock};
/// Families tried, in order, when none is asked for or the one asked for isn't installed.
pub const DEFAULT_FAMILIES: &[&str] = &["Inter", "Arial", "Helvetica", "Helvetica Neue", "Segoe UI", "DejaVu Sans", "Liberation Sans", "Noto Sans", "Roboto", "Ubuntu"];
+/// Installed families tried for the device font `_serif`, in order.
+const SERIF_FAMILIES: &[&str] = &["Times New Roman", "Times", "Georgia", "DejaVu Serif", "Liberation Serif", "Noto Serif"];
+
+/// Installed families tried for the device font `_typewriter`, in order.
+const MONO_FAMILIES: &[&str] = &["Courier New", "Courier", "JetBrains Mono", "DejaVu Sans Mono", "Liberation Mono", "Noto Sans Mono", "Consolas", "Menlo"];
+
/// Largest text block laid out (characters).
pub const MAX_CHARS: usize = 100_000;
@@ -60,6 +66,24 @@ pub struct Layout {
pub family: String,
/// Characters the font has no glyph for (drawn as its "notdef" box).
pub missing: usize,
+ /// Lines laid out (at least one), and the distance between their baselines (pixels): a
+ /// line that continued the block would start `lines × line_height` below its top.
+ pub lines: usize,
+ pub line_height: f32,
+}
+
+/// What a font name written by another program means on this computer: a PostScript name
+/// (`Arial-BoldMT`, as Animate documents store faces), a family name, or a device font
+/// (`_sans`, `_serif`, `_typewriter`).
+#[derive(Clone, Debug, PartialEq, Eq)]
+pub struct FaceMatch {
+ /// The installed family, or `None` when it isn't installed (layout then falls back to the
+ /// default family).
+ pub family: Option,
+ /// The family the name stands for, installed or not ("Times New Roman"), for reports.
+ pub wanted: String,
+ pub bold: bool,
+ pub italic: bool,
}
#[derive(Debug, PartialEq, Eq)]
@@ -134,6 +158,46 @@ impl Fonts {
&self.families
}
+ /// The installed family named `name`, ignoring case and spaces ("SegoeUI" finds "Segoe UI").
+ fn installed(&self, name: &str) -> Option {
+ let key = |s: &str| s.chars().filter(|c| !c.is_whitespace()).flat_map(char::to_lowercase).collect::();
+ let want = key(name);
+ if want.is_empty() {
+ return None;
+ }
+ self.families.iter().find(|f| key(f) == want).cloned()
+ }
+
+ /// What `name` (a PostScript name, a family or a device font) is on this computer: the
+ /// face with that PostScript name, else the family, else the family the name suggests
+ /// ([`guess_family`]).
+ pub fn find_face(&self, name: &str) -> FaceMatch {
+ let name = name.trim();
+ if name.is_empty() {
+ return FaceMatch { family: None, wanted: String::new(), bold: false, italic: false };
+ }
+ if let Some(f) = self.db.faces().find(|f| f.post_script_name.eq_ignore_ascii_case(name))
+ && let Some((family, _)) = f.families.first()
+ {
+ return FaceMatch { family: Some(family.clone()), wanted: family.clone(), bold: f.weight.0 >= 600, italic: f.style != fontdb::Style::Normal };
+ }
+ let device: Option<&[&str]> = match name {
+ "_sans" => Some(DEFAULT_FAMILIES),
+ "_serif" => Some(SERIF_FAMILIES),
+ "_typewriter" => Some(MONO_FAMILIES),
+ _ => None,
+ };
+ if let Some(list) = device {
+ let family = list.iter().find_map(|f| self.installed(f));
+ return FaceMatch { wanted: family.clone().unwrap_or_else(|| name.to_string()), family, bold: false, italic: false };
+ }
+ if let Some(family) = self.installed(name) {
+ return FaceMatch { wanted: family.clone(), family: Some(family), bold: false, italic: false };
+ }
+ let (wanted, bold, italic) = guess_family(name);
+ FaceMatch { family: self.installed(&wanted), wanted, bold, italic }
+ }
+
/// The family used for `asked`: itself when installed (any case), else the default.
pub fn resolve(&self, asked: &str) -> Option {
let find = |name: &str| self.families.iter().find(|f| f.eq_ignore_ascii_case(name)).cloned();
@@ -163,6 +227,32 @@ impl Fonts {
}
}
+/// The family, boldness and slant a PostScript name suggests, for fonts that aren't installed:
+/// `TimesNewRomanPS-BoldItalicMT` is Times New Roman, bold and italic.
+pub fn guess_family(postscript: &str) -> (String, bool, bool) {
+ let name: String = postscript.trim().chars().take(256).collect();
+ let (base, style) = name.split_once(['-', ',']).unwrap_or((&name, ""));
+ let style = style.to_ascii_lowercase();
+ let bold = ["bold", "black", "heavy"].iter().any(|w| style.contains(w));
+ let italic = ["italic", "oblique"].iter().any(|w| style.contains(w));
+ // The suffixes PostScript names give Monotype and PostScript versions of a face.
+ let mut base = base;
+ for suffix in ["MT", "PS"] {
+ base = base.strip_suffix(suffix).filter(|b| !b.is_empty()).unwrap_or(base);
+ }
+ // CamelCase to words: "HelveticaNeue" → "Helvetica Neue"; capital runs stay ("ComicSansMS").
+ let mut family = String::with_capacity(base.len() + 4);
+ let mut prev: Option = None;
+ for c in base.chars() {
+ if c.is_uppercase() && prev.is_some_and(|p| p.is_lowercase() || p.is_ascii_digit()) {
+ family.push(' ');
+ }
+ family.push(c);
+ prev = Some(c);
+ }
+ (family.trim().to_string(), bold, italic)
+}
+
/// Clamps a style to sane ranges (sizes from 1 to 2000 px, spacing within ±1000 px).
pub fn sanitize(style: &Style) -> Style {
let fin = |v: f32, d: f32| if v.is_finite() { v } else { d };
@@ -276,7 +366,7 @@ fn lay_out(data: &[u8], index: u32, text: &str, style: &Style) -> Option
}
}
let height = (lines.len().max(1) as f32 - 1.0) * line_height + (metrics.ascent - metrics.descent);
- Some(Layout { outline, width: box_width.max(0.0), height: height.max(0.0), family: String::new(), missing })
+ Some(Layout { outline, width: box_width.max(0.0), height: height.max(0.0), family: String::new(), missing, lines: lines.len().max(1), line_height })
}
/// Draws glyph outlines (font space, y up) into a path (pixels, y down) at a pen position.
@@ -383,4 +473,50 @@ mod tests {
assert_eq!(fonts.layout(&"x".repeat(MAX_CHARS + 1), &style(10.0)), Err(TextError::TooLong));
assert_eq!(Fonts::from_faces(Vec::new()).layout("x", &style(10.0)), Err(TextError::NoFonts));
}
+
+ #[test]
+ fn postscript_names_suggest_families() {
+ let g = |n: &str| guess_family(n);
+ assert_eq!(g("ArialMT"), ("Arial".into(), false, false));
+ assert_eq!(g("Arial-BoldMT"), ("Arial".into(), true, false));
+ assert_eq!(g("TimesNewRomanPS-BoldItalicMT"), ("Times New Roman".into(), true, true));
+ assert_eq!(g("TimesNewRomanPSMT"), ("Times New Roman".into(), false, false));
+ assert_eq!(g("HelveticaNeue-LightOblique"), ("Helvetica Neue".into(), false, true));
+ assert_eq!(g("ComicSansMS"), ("Comic Sans MS".into(), false, false));
+ assert_eq!(g("Myriad Pro"), ("Myriad Pro".into(), false, false));
+ assert_eq!(g("Gotham-Black"), ("Gotham".into(), true, false));
+ assert_eq!(g(""), (String::new(), false, false));
+ assert_eq!(g("MT"), ("MT".into(), false, false), "a suffix alone is the name");
+ }
+
+ #[test]
+ fn faces_are_found_by_postscript_name_family_or_device_font() {
+ let none = Fonts::from_faces(Vec::new());
+ let m = none.find_face("Futura-Bold");
+ assert_eq!((m.family, m.wanted.as_str(), m.bold, m.italic), (None, "Futura", true, false));
+ assert_eq!(none.find_face(" ").wanted, "");
+ let Some(fonts) = fonts() else { return };
+ let face = fonts.db.faces().find(|f| !f.post_script_name.is_empty() && f.families.first().is_some_and(|(n, _)| !n.starts_with('.')));
+ if let Some(face) = face {
+ let m = fonts.find_face(&face.post_script_name);
+ assert!(m.family.is_some(), "{}", face.post_script_name);
+ }
+ let first = fonts.families()[0].clone();
+ assert_eq!(fonts.find_face(&first.to_uppercase()).family, Some(first.clone()));
+ assert_eq!(fonts.find_face(&first.replace(' ', "")).family, Some(first), "spaces don't matter");
+ assert!(fonts.find_face("_sans").family.is_some(), "the default families include an installed one");
+ let missing = fonts.find_face("NoSuchFamily-Italic");
+ assert_eq!((missing.family, missing.wanted.as_str(), missing.italic), (None, "No Such Family", true));
+ }
+
+ #[test]
+ fn layouts_report_their_lines() {
+ let Some(fonts) = fonts() else { return };
+ let one = fonts.layout("one", &style(20.0)).unwrap();
+ let three = fonts.layout("one\ntwo\nthree", &style(20.0)).unwrap();
+ assert_eq!((one.lines, three.lines), (1, 3));
+ assert!((one.line_height - three.line_height).abs() < 1e-3 && one.line_height >= 10.0);
+ assert!((three.height - one.height - 2.0 * one.line_height).abs() < 0.01);
+ assert_eq!(fonts.layout("", &style(20.0)).unwrap().lines, 1);
+ }
}
From 95131360bd14fac5d4443a58885f2876acfdb7a3 Mon Sep 17 00:00:00 2001
From: Tanish Manku
Date: Mon, 9 Nov 2026 01:51:05 -0700
Subject: [PATCH 04/25] feat(xfl): import text fields as text blocks, report
missing fonts (M4)
---
Cargo.lock | 1 +
crates/engine/src/cmds_file.rs | 1 +
crates/engine/src/tests.rs | 23 ++-
crates/xfl/Cargo.toml | 2 +
crates/xfl/src/import.rs | 76 +++++++--
crates/xfl/src/lib.rs | 5 +-
crates/xfl/src/tests.rs | 2 +-
crates/xfl/src/text.rs | 271 +++++++++++++++++++++++++++++++++
crates/xfl/src/text_tests.rs | 194 +++++++++++++++++++++++
src/main.rs | 23 ++-
10 files changed, 574 insertions(+), 24 deletions(-)
create mode 100644 crates/xfl/src/text.rs
create mode 100644 crates/xfl/src/text_tests.rs
diff --git a/Cargo.lock b/Cargo.lock
index d7b4d91a..06ab8f70 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -276,6 +276,7 @@ version = "0.1.0"
dependencies = [
"anicraft-doc",
"anicraft-geom",
+ "anicraft-text",
"anicraft-xml",
"miniz_oxide 0.8.9",
"png 0.17.16",
diff --git a/crates/engine/src/cmds_file.rs b/crates/engine/src/cmds_file.rs
index a920dd26..ae0e08a2 100644
--- a/crates/engine/src/cmds_file.rs
+++ b/crates/engine/src/cmds_file.rs
@@ -145,6 +145,7 @@ fn open(s: &mut Session, p: &Value) -> Result {
info["imported"] = json!(path.display().to_string());
info["report"] = json!(report.summary());
info["skipped"] = json!(report.skipped);
+ info["missing_fonts"] = json!(report.missing_fonts);
return Ok(info);
}
let doc = format::load(&path)?;
diff --git a/crates/engine/src/tests.rs b/crates/engine/src/tests.rs
index 732a3dea..fc50906e 100644
--- a/crates/engine/src/tests.rs
+++ b/crates/engine/src/tests.rs
@@ -959,7 +959,8 @@ fn opening_an_xfl_folder_imports_it_untitled() {
dir.join("DOMDocument.xml"),
r##"
- "##,
+ Hello
+ "##,
)
.unwrap();
let mut s = Session::default();
@@ -967,12 +968,30 @@ fn opening_an_xfl_folder_imports_it_untitled() {
assert_eq!((s.doc.stage.width, s.doc.stage.fps), (320, 12.0));
assert_eq!(s.doc.timeline(s.scene).layers[0].name, "Art");
assert_eq!(s.doc.frame_count(), 6);
- assert!(v["report"].as_str().unwrap().contains("1 text fields"), "{v}");
+ assert!(v["report"].as_str().unwrap().contains("1 dynamic and input text fields (imported as static text)"), "{v}");
assert!(s.path.is_none(), "imported documents are untitled: Save never writes over the original");
assert!(s.execute("file.save", &json!({})).is_err());
// It renders.
let dl = s.display_list();
assert!(dl.items.iter().any(|i| matches!(i.fill, Some(anicraft_doc::Paint::Solid(c)) if c == anicraft_doc::Rgba::hex(0xff8800))));
+ // Text comes across as an editable text block when this computer has fonts (ADR 0014),
+ // with the missing family named.
+ if !anicraft_text::Fonts::get().families().is_empty() {
+ assert!(v["report"].as_str().unwrap().contains("Fonts not on this computer"), "{v}");
+ assert_eq!(v["missing_fonts"], json!(["No Such Family At All"]));
+ let text = s.doc.timeline(s.scene).layers[0].keyframes[0].elements.iter().find(|e| matches!(e.kind, ElementKind::Text(_))).cloned().expect("a text element");
+ assert_eq!(text.name, "title");
+ assert!(dl.items.iter().any(|i| matches!(i.fill, Some(anicraft_doc::Paint::Solid(c)) if c == anicraft_doc::Rgba::hex(0x0000ff))), "the text renders");
+ s.selection = vec![text.id];
+ run(&mut s, "text.edit", json!({"text": "Hello again"}));
+ // Saved and opened again, it is the same text.
+ let file = dir.join("imported.anicraft");
+ run(&mut s, "file.save", json!({"path": file.display().to_string()}));
+ let mut back = Session::default();
+ run(&mut back, "file.open", json!({"path": file.display().to_string()}));
+ let ElementKind::Text(t) = &back.doc.timeline(0).layers[0].keyframes[0].elements.iter().find(|e| e.id == text.id).unwrap().kind else { panic!("text") };
+ assert_eq!((t.text.as_str(), t.size, t.bold), ("Hello again", 20.0, true));
+ }
std::fs::remove_dir_all(&dir).ok();
}
diff --git a/crates/xfl/Cargo.toml b/crates/xfl/Cargo.toml
index e97bf45e..4affa975 100644
--- a/crates/xfl/Cargo.toml
+++ b/crates/xfl/Cargo.toml
@@ -11,6 +11,8 @@ repository.workspace = true
anicraft-geom.workspace = true
anicraft-doc.workspace = true
anicraft-xml.workspace = true
+# Lays imported text out with the fonts on this computer (ADR 0012, ADR 0014).
+anicraft-text.workspace = true
# Inflate for .fla (zip) archives; already in the tree through png (MIT OR Zlib OR Apache-2.0).
miniz_oxide = "0.8"
thiserror.workspace = true
diff --git a/crates/xfl/src/import.rs b/crates/xfl/src/import.rs
index 7d3145ec..37f1b122 100644
--- a/crates/xfl/src/import.rs
+++ b/crates/xfl/src/import.rs
@@ -7,9 +7,9 @@
//! primitives; symbol instances with their matrix, alpha and tint, loop mode and first frame;
//! library symbols (graphic, movie clip, button) with their own timelines, nested to any
//! depth; bitmaps (library items, instances and bitmap fills) whose image is stored as PNG or
-//! JPEG in the package. Everything else (text, sound, motion tweens with property curves,
-//! filters, bitmaps kept only in Animate's own storage) is counted in the report instead of
-//! guessed at.
+//! JPEG in the package; text fields, laid out with this computer's fonts (`text`, ADR 0014).
+//! Everything else (sound, motion tweens with property curves, bevel and gradient filters,
+//! bitmaps kept only in Animate's own storage) is counted in the report instead of guessed at.
use crate::edges::{self, Edge};
use crate::xml::{self, Element as X};
@@ -18,7 +18,8 @@ use anicraft_doc::{
Scene, SymbolKind, Timeline, Tween, TweenKind,
};
use anicraft_geom::{Affine, FillRule, Path, Vec2};
-use std::collections::{BTreeMap, HashMap, HashSet};
+use anicraft_text::{FaceMatch, Fonts};
+use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
use std::sync::Arc;
#[derive(Debug, thiserror::Error)]
@@ -33,25 +34,40 @@ pub enum XflError {
NotXfl(String),
}
-/// What the import couldn't bring across, by kind ("3 bitmaps").
+/// What the import couldn't bring across, by kind ("3 bitmaps"), and the fonts it couldn't
+/// find.
#[derive(Debug, Default, Clone, PartialEq)]
pub struct Report {
pub skipped: BTreeMap,
pub notes: Vec,
+ /// Font families the document's text asks for that aren't on this computer.
+ pub missing_fonts: BTreeSet,
+ /// The family that text was laid out in instead.
+ pub fallback_font: Option,
}
impl Report {
- fn skip(&mut self, what: &str) {
+ pub(crate) fn skip(&mut self, what: &str) {
*self.skipped.entry(what.to_string()).or_default() += 1;
}
- /// One line for a status bar: "Imported. Not yet supported: 2 bitmaps, 1 text field."
+ /// One line for a status bar: "Imported. Not yet supported: 2 sounds. Fonts not on this
+ /// computer, drawn in Inter: Futura, Gotham."
pub fn summary(&self) -> String {
- if self.skipped.is_empty() && self.notes.is_empty() {
+ if self.skipped.is_empty() && self.notes.is_empty() && self.missing_fonts.is_empty() {
return "Imported everything in the file.".into();
}
+ let mut out = String::from("Imported.");
let mut parts: Vec = self.skipped.iter().map(|(k, n)| format!("{n} {k}")).collect();
parts.extend(self.notes.iter().cloned());
- format!("Imported. Not yet supported: {}.", parts.join(", "))
+ if !parts.is_empty() {
+ out.push_str(&format!(" Not yet supported: {}.", parts.join(", ")));
+ }
+ if !self.missing_fonts.is_empty() {
+ let names: Vec<&str> = self.missing_fonts.iter().map(String::as_str).collect();
+ let instead = self.fallback_font.as_deref().map(|f| format!(", drawn in {f}")).unwrap_or_default();
+ out.push_str(&format!(" Fonts not on this computer{instead}: {}.", names.join(", ")));
+ }
+ out
}
}
@@ -77,9 +93,13 @@ struct Builder<'a> {
/// Library item name → bitmap id, for the bitmaps that could be read.
bitmaps: HashMap,
report: Report,
+ /// The fonts text is laid out with; the computer's, found on the first text field.
+ fonts: Option<&'a Fonts>,
+ /// Face name → what it is on this computer, looked up once per name.
+ faces: HashMap,
}
-fn color(el: &X, key: &str, alpha_key: &str) -> Rgba {
+pub(crate) fn color(el: &X, key: &str, alpha_key: &str) -> Rgba {
let rgb = el.attr(key).and_then(|c| u32::from_str_radix(c.trim().trim_start_matches('#'), 16).ok()).unwrap_or(0);
Rgba::hex(rgb).with_alpha(el.f32(alpha_key).unwrap_or(1.0).clamp(0.0, 1.0))
}
@@ -238,6 +258,25 @@ impl<'a> Builder<'a> {
out
}
+ /// A text field: one text element per block (`text::field`), placed by the field's matrix.
+ fn text_field(&mut self, el: &X, parent: &Affine, out: &mut Vec>) {
+ let fonts: &'a Fonts = match self.fonts {
+ Some(f) => f,
+ None => Fonts::get(),
+ };
+ self.fonts = Some(fonts);
+ let m = parent.mul(&matrix(el));
+ let name: String = el.attr("name").unwrap_or("").chars().take(256).collect();
+ for (i, p) in crate::text::field(el, fonts, &mut self.faces, &mut self.report).into_iter().enumerate() {
+ let mut e = Element { id: ElementId(self.doc.alloc_id()), name: String::new(), transform: m.mul(&Affine::translate(p.offset.x, p.offset.y)), color: ColorEffect::default(), kind: ElementKind::Text(Arc::new(p.block)) };
+ // A dynamic or input field's instance name goes on its first block.
+ if i == 0 {
+ e.name.clone_from(&name);
+ }
+ out.push(Arc::new(e));
+ }
+ }
+
fn instance(&mut self, el: &X, parent: &Affine, out: &mut Vec>) {
let Some(&symbol) = el.attr("libraryItemName").and_then(|n| self.ids.get(n)) else {
self.report.skip("instances of missing symbols");
@@ -278,7 +317,7 @@ impl<'a> Builder<'a> {
"DOMSymbolInstance" => self.instance(el, parent, out),
"DOMRectangleObject" | "DOMOvalObject" => self.primitive(el, parent, out),
"DOMBitmapInstance" => self.bitmap_instance(el, parent, out),
- "DOMStaticText" | "DOMDynamicText" | "DOMInputText" => self.report.skip("text fields"),
+ "DOMStaticText" | "DOMDynamicText" | "DOMInputText" => self.text_field(el, parent, out),
"DOMVideoInstance" => self.report.skip("videos"),
_ => self.report.skip("other elements"),
}
@@ -438,14 +477,25 @@ impl<'a> Builder<'a> {
}
}
-/// Imports an XFL package through `read` (paths inside the package).
+/// Imports an XFL package through `read` (paths inside the package). Text is laid out with
+/// the fonts on this computer.
pub fn import_with(read: &Reader<'_>) -> Result<(Document, Report), XflError> {
+ import_from(read, None)
+}
+
+/// Imports an XFL package, laying text out with `fonts` (tests, and hosts with their own font
+/// library).
+pub fn import_with_fonts(read: &Reader<'_>, fonts: &Fonts) -> Result<(Document, Report), XflError> {
+ import_from(read, Some(fonts))
+}
+
+fn import_from<'a>(read: &'a Reader<'a>, fonts: Option<&'a Fonts>) -> Result<(Document, Report), XflError> {
let bytes = read("DOMDocument.xml")?.ok_or_else(|| XflError::NotXfl("no DOMDocument.xml".into()))?;
let root = xml::parse(&bytes)?;
if root.name != "DOMDocument" {
return Err(XflError::NotXfl(format!("the root element is <{}>", root.name)));
}
- let mut b = Builder { doc: Document::default(), read, ids: HashMap::new(), pending: Vec::new(), bitmaps: HashMap::new(), report: Report::default() };
+ let mut b = Builder { doc: Document::default(), read, ids: HashMap::new(), pending: Vec::new(), bitmaps: HashMap::new(), report: Report::default(), fonts, faces: HashMap::new() };
b.doc.library.clear();
b.doc.scenes.clear();
b.doc.stage = Stage {
diff --git a/crates/xfl/src/lib.rs b/crates/xfl/src/lib.rs
index 431e15c2..dc327419 100644
--- a/crates/xfl/src/lib.rs
+++ b/crates/xfl/src/lib.rs
@@ -8,11 +8,14 @@
pub mod edges;
pub mod import;
+pub mod text;
/// The shared XML reader (`anicraft-xml`), under its old path.
pub use anicraft_xml as xml;
pub mod zip;
-pub use import::{Report, XflError, import_path, import_with};
+pub use import::{Report, XflError, import_path, import_with, import_with_fonts};
#[cfg(test)]
mod tests;
+#[cfg(test)]
+mod text_tests;
diff --git a/crates/xfl/src/tests.rs b/crates/xfl/src/tests.rs
index 6c6fef36..5f263edd 100644
--- a/crates/xfl/src/tests.rs
+++ b/crates/xfl/src/tests.rs
@@ -90,7 +90,7 @@ fn stage_layers_frames_and_tweens() {
assert_eq!(doc.timeline(0).frame_count(), 15);
assert_eq!(doc.frame_count(), 16, "the movie: scene 1, then the one-frame scene 2");
// What couldn't come across is reported, not guessed.
- assert_eq!(report.skipped.get("text fields"), Some(&1));
+ assert!(report.skipped.keys().all(|k| !k.contains("text")), "an empty text field makes nothing and reports nothing");
assert_eq!(report.skipped.get("instances of missing bitmaps"), Some(&1));
assert_eq!(report.skipped.get("missing library files"), Some(&1));
// Frame scripts, on the scene's frames and inside symbols, are counted (ADR 0013).
diff --git a/crates/xfl/src/text.rs b/crates/xfl/src/text.rs
new file mode 100644
index 00000000..ea412874
--- /dev/null
+++ b/crates/xfl/src/text.rs
@@ -0,0 +1,271 @@
+//! Text fields (`DOMStaticText`, `DOMDynamicText`, `DOMInputText`) → text blocks laid out by
+//! `anicraft-text` (ADR 0014).
+//!
+//! A field holds text runs (`…
+//! `). An AniCraft text block has one style, so a field
+//! becomes one block per run of consecutive lines that share a style, stacked as Animate
+//! stacks them; a line that mixes styles takes the style most of its characters have, and the
+//! report says so.
+
+use crate::import::{Report, color};
+use crate::xml::Element as X;
+use anicraft_doc::{Rgba, TextAlign, TextBlock};
+use anicraft_geom::Vec2;
+use anicraft_text::{Align, FaceMatch, Fonts, TextError};
+use std::collections::HashMap;
+use std::sync::Arc;
+
+/// The space between a text field's box and its text, on every side (pixels), as in Animate's
+/// text fields.
+pub const GUTTER: f32 = 2.0;
+
+/// Most runs read from one field.
+const MAX_RUNS: usize = 10_000;
+
+/// One run's style, as `DOMTextAttrs` gives it.
+#[derive(Clone, Debug, PartialEq)]
+struct RunStyle {
+ face: String,
+ size: f32,
+ bold: bool,
+ italic: bool,
+ color: Rgba,
+ align: TextAlign,
+ letter_spacing: f32,
+ line_spacing: f32,
+ left_margin: f32,
+ right_margin: f32,
+}
+
+/// A laid-out block and where its box's top-left goes, in the field's coordinates.
+pub struct Placed {
+ pub block: TextBlock,
+ pub offset: Vec2,
+}
+
+fn run_style(attrs: Option<&X>, flags: &mut Flags) -> RunStyle {
+ let Some(a) = attrs else {
+ return RunStyle { face: String::new(), size: 12.0, bold: false, italic: false, color: Rgba::BLACK, align: TextAlign::Left, letter_spacing: 0.0, line_spacing: 0.0, left_margin: 0.0, right_margin: 0.0 };
+ };
+ let num = |k: &str, lo: f32, hi: f32| a.f32(k).unwrap_or(0.0).clamp(lo, hi);
+ let align = match a.attr("alignment") {
+ Some("center") => TextAlign::Center,
+ Some("right") => TextAlign::Right,
+ Some(j) if j.starts_with("justify") => {
+ flags.justified = true;
+ TextAlign::Left
+ }
+ _ => TextAlign::Left,
+ };
+ if a.f32("indent").is_some_and(|i| i != 0.0) {
+ flags.indented = true;
+ }
+ if a.attr("characterPosition").is_some_and(|p| p != "normal") {
+ flags.shifted = true;
+ }
+ RunStyle {
+ face: a.attr("face").unwrap_or("").chars().take(256).collect(),
+ size: a.f32("size").unwrap_or(12.0).clamp(1.0, 2000.0),
+ bold: a.bool("bold").unwrap_or(false),
+ italic: a.bool("italic").unwrap_or(false),
+ color: if a.attr("fillColor").is_some() { color(a, "fillColor", "alpha") } else { Rgba::BLACK.with_alpha(a.f32("alpha").unwrap_or(1.0).clamp(0.0, 1.0)) },
+ align,
+ letter_spacing: num("letterSpacing", -1000.0, 1000.0),
+ line_spacing: num("lineSpacing", -1000.0, 1000.0),
+ left_margin: num("leftMargin", 0.0, 10_000.0),
+ right_margin: num("rightMargin", 0.0, 10_000.0),
+ }
+}
+
+/// What a field used that AniCraft draws differently, reported once per field.
+#[derive(Default)]
+struct Flags {
+ justified: bool,
+ indented: bool,
+ shifted: bool,
+}
+
+/// A line of the field: its pieces, each with the style of the run it came from.
+type Line = Vec<(String, usize)>;
+
+/// The style a line is drawn in: that of the most visible characters (the first on a tie), or
+/// of its first piece when it is empty.
+fn main_style(line: &Line) -> (usize, bool) {
+ // Visible characters per style, in the order the styles first appear.
+ let mut totals: Vec<(usize, usize)> = Vec::new();
+ for (t, s) in line {
+ let n = t.chars().filter(|c| !c.is_whitespace()).count();
+ match totals.iter_mut().find(|(x, _)| x == s) {
+ Some(e) => e.1 += n,
+ None => totals.push((*s, n)),
+ }
+ }
+ let mut best: Option<(usize, usize)> = None;
+ for &(s, n) in &totals {
+ if best.is_none_or(|(_, b)| n > b) {
+ best = Some((s, n));
+ }
+ }
+ (best.map_or(0, |(s, _)| s), totals.iter().filter(|(_, n)| *n > 0).count() > 1)
+}
+
+/// Lays out one text field. Fonts are looked up once per face name (`faces`); missing ones go
+/// into the report.
+pub fn field(el: &X, fonts: &Fonts, faces: &mut HashMap, report: &mut Report) -> Vec {
+ if el.name != "DOMStaticText" {
+ report.skip("dynamic and input text fields (imported as static text)");
+ }
+ if el.attr("orientation").is_some_and(|o| o != "horizontal") {
+ report.skip("vertical text (drawn horizontal)");
+ }
+ if !el.list("filters").is_empty() {
+ report.skip("filters on text");
+ }
+ let mut flags = Flags::default();
+ let mut styles: Vec = Vec::new();
+ let mut lines: Vec = vec![Vec::new()];
+ let mut chars = 0usize;
+ let runs = el.list("textRuns");
+ let mut cut = runs.len() > MAX_RUNS;
+ for run in runs.iter().filter(|r| r.name == "DOMTextRun").take(MAX_RUNS) {
+ let style = run_style(run.child("textAttrs").and_then(|t| t.child("DOMTextAttrs")), &mut flags);
+ let s = match styles.iter().position(|x| *x == style) {
+ Some(i) => i,
+ None => {
+ styles.push(style);
+ styles.len() - 1
+ }
+ };
+ let text = run.child("characters").map_or("", |c| c.text.as_str());
+ // Animate ends lines with a carriage return; any line break starts a new line here.
+ let text = text.replace("\r\n", "\n").replace(['\r', '\u{2028}', '\u{2029}'], "\n");
+ for (i, piece) in text.split('\n').enumerate() {
+ if i > 0 {
+ lines.push(Vec::new());
+ chars += 1;
+ }
+ let room = anicraft_text::MAX_CHARS.saturating_sub(chars);
+ let n = piece.chars().count();
+ if n > room {
+ cut = true;
+ }
+ let piece: String = piece.chars().take(room).collect();
+ chars += n.min(room);
+ if let Some(l) = lines.last_mut() {
+ l.push((piece, s));
+ }
+ }
+ if chars >= anicraft_text::MAX_CHARS {
+ break;
+ }
+ }
+ if cut {
+ report.skip("text cut to 100,000 characters per field");
+ }
+ // Trailing empty lines draw nothing.
+ while lines.last().is_some_and(|l| l.iter().all(|(t, _)| t.trim().is_empty())) {
+ lines.pop();
+ }
+ if lines.is_empty() || styles.is_empty() {
+ return Vec::new();
+ }
+ if flags.justified {
+ report.skip("justified text (drawn left-aligned)");
+ }
+ if flags.indented {
+ report.skip("first-line indents");
+ }
+ if flags.shifted {
+ report.skip("superscript and subscript (drawn on the line)");
+ }
+
+ // Consecutive lines in the same style make one block.
+ let mut blocks: Vec<(usize, String)> = Vec::new();
+ for line in &lines {
+ let (s, mixed) = main_style(line);
+ if mixed {
+ report.skip("lines with mixed text styles (drawn in their main style)");
+ }
+ let text: String = line.iter().map(|(t, _)| t.as_str()).collect();
+ match blocks.last_mut() {
+ Some((ls, t)) if *ls == s => {
+ t.push('\n');
+ t.push_str(&text);
+ }
+ _ => blocks.push((s, text)),
+ }
+ }
+
+ let auto = el.bool("autoExpand").unwrap_or(false);
+ let field_width = el.f32("width").filter(|w| *w > 0.0).map(|w| w.min(100_000.0));
+ let origin = Vec2::new(el.f32("left").unwrap_or(0.0) + GUTTER, el.f32("top").unwrap_or(0.0) + GUTTER);
+ let mut out: Vec = Vec::new();
+ let mut y = 0.0f32;
+ for (s, text) in blocks {
+ let Some(st) = styles.get(s) else { continue };
+ let face = faces.entry(st.face.clone()).or_insert_with(|| fonts.find_face(&st.face)).clone();
+ // A fixed-width field wraps inside its margins; an auto-size one never wraps.
+ let width = if auto { None } else { field_width.map(|w| (w - st.left_margin - st.right_margin).max(1.0)) };
+ let style = anicraft_text::Style {
+ family: face.family.clone().unwrap_or_default(),
+ size: st.size,
+ bold: st.bold || face.bold,
+ italic: st.italic || face.italic,
+ align: match st.align {
+ TextAlign::Left => Align::Left,
+ TextAlign::Center => Align::Center,
+ TextAlign::Right => Align::Right,
+ },
+ letter_spacing: st.letter_spacing,
+ line_spacing: st.line_spacing,
+ width,
+ };
+ let layout = match fonts.layout(&text, &style) {
+ Ok(l) => l,
+ Err(TextError::NoFonts) => {
+ report.skip("text fields (no fonts on this computer)");
+ return Vec::new();
+ }
+ Err(TextError::TooLong) => {
+ report.skip("text cut to 100,000 characters per field");
+ continue;
+ }
+ };
+ // A family that isn't installed falls back to the default, as the text engine does
+ // (ADR 0012), and the report names it.
+ if face.family.is_none() && !face.wanted.is_empty() {
+ report.missing_fonts.insert(face.wanted.clone());
+ report.fallback_font.get_or_insert_with(|| layout.family.clone());
+ }
+ let block = TextBlock {
+ text,
+ font: layout.family,
+ size: style.size,
+ bold: style.bold,
+ italic: style.italic,
+ color: st.color,
+ align: st.align,
+ letter_spacing: st.letter_spacing,
+ line_spacing: st.line_spacing,
+ width,
+ outline: Arc::new(layout.outline),
+ box_width: layout.width,
+ box_height: layout.height,
+ };
+ out.push(Placed { block, offset: Vec2::new(origin.x + st.left_margin, origin.y + y) });
+ y += layout.lines as f32 * layout.line_height;
+ }
+ // Auto-size blocks align against the widest one, as lines of one field do.
+ if auto {
+ let widest = out.iter().map(|p| p.block.box_width).fold(0.0, f32::max);
+ for p in &mut out {
+ p.offset.x += match p.block.align {
+ TextAlign::Left => 0.0,
+ TextAlign::Center => (widest - p.block.box_width) * 0.5,
+ TextAlign::Right => widest - p.block.box_width,
+ };
+ }
+ }
+ out
+}
diff --git a/crates/xfl/src/text_tests.rs b/crates/xfl/src/text_tests.rs
new file mode 100644
index 00000000..d34272f1
--- /dev/null
+++ b/crates/xfl/src/text_tests.rs
@@ -0,0 +1,194 @@
+//! Text import tests on self-authored XFL snippets (ADR 0014).
+
+use crate::import::{Report, XflError, import_with, import_with_fonts};
+use crate::text::GUTTER;
+use anicraft_doc::{Document, Element, ElementKind, Paint, Rgba, TextAlign, TextBlock, evaluate};
+use anicraft_text::Fonts;
+use std::sync::Arc;
+
+/// The computer's fonts and an installed family, or `None` (and the test passes) on a computer
+/// without fonts.
+fn fonts() -> Option<(&'static Fonts, String)> {
+ let f = Fonts::get();
+ let family = f.resolve("")?;
+ Some((f, family))
+}
+
+/// A document with these elements on its one frame.
+fn doc_with(elements: &str) -> String {
+ format!(r#"{elements} "#)
+}
+
+fn import_doc(xml: &str, fonts: &Fonts) -> (Document, Report) {
+ let read = |p: &str| -> Result>, XflError> { Ok((p == "DOMDocument.xml").then(|| xml.as_bytes().to_vec())) };
+ import_with_fonts(&read, fonts).unwrap()
+}
+
+fn texts(doc: &Document) -> Vec<(Arc, Arc)> {
+ doc.timeline(0).layers[0].keyframes[0].elements.iter().filter_map(|e| if let ElementKind::Text(t) = &e.kind { Some((e.clone(), t.clone())) } else { None }).collect()
+}
+
+fn run(chars: &str, attrs: &str) -> String {
+ format!("{chars} ")
+}
+
+#[test]
+fn static_text_keeps_its_style_matrix_and_lines() {
+ let Some((fonts, family)) = fonts() else { return };
+ let field = format!(
+ r##"{} "##,
+ run("Hello
World", &format!(r##"face="{family}" size="24" fillColor="#FF0000" alignment="center" letterSpacing="1.5" lineSpacing="4""##))
+ );
+ let (doc, report) = import_doc(&doc_with(&field), fonts);
+ let t = texts(&doc);
+ assert_eq!(t.len(), 1);
+ let (el, b) = &t[0];
+ assert_eq!(b.text, "Hello\nWorld", "Animate's carriage returns are line breaks");
+ assert_eq!((b.font.as_str(), b.size, b.color, b.align), (family.as_str(), 24.0, Rgba::hex(0xff0000), TextAlign::Center));
+ assert_eq!((b.letter_spacing, b.line_spacing, b.width, b.bold, b.italic), (1.5, 4.0, None, false, false));
+ // The matrix places the field; its text sits inside the gutter.
+ assert_eq!(el.transform.m, [2.0, 0.0, 0.0, 2.0, 100.0 + 2.0 * GUTTER, 50.0 + 2.0 * GUTTER]);
+ // Two lines, laid out by the text engine and stored as outlines.
+ let one = fonts.layout("Hello", &anicraft_text::Style { family: family.clone(), size: 24.0, line_spacing: 4.0, ..Default::default() }).unwrap();
+ assert!(b.box_height > one.height + one.line_height - 0.5, "{} vs {}", b.box_height, one.height);
+ assert!(!b.outline.cmds.is_empty());
+ assert!(report.skipped.is_empty() && report.missing_fonts.is_empty(), "{report:?}");
+ assert_eq!(report.summary(), "Imported everything in the file.");
+ // It renders, red, where the matrix puts it.
+ let list = evaluate(&doc, 0);
+ let item = list.items.iter().find(|i| i.fill == Some(Paint::Solid(Rgba::hex(0xff0000)))).expect("the text renders");
+ assert!(item.transform.translation().x > 100.0);
+}
+
+#[test]
+fn fixed_width_fields_wrap_and_auto_size_ones_do_not() {
+ let Some((fonts, family)) = fonts() else { return };
+ let words = "one two three four five six seven eight nine ten";
+ let field = |extra: &str| format!(r#"{} "#, run(words, &format!(r#"face="{family}" size="14""#)));
+ let (doc, _) = import_doc(&doc_with(&(field("") + &field(r#"autoExpand="true""#))), fonts);
+ let t = texts(&doc);
+ assert_eq!(t[0].1.width, Some(90.0), "fixed width");
+ assert!(t[0].1.box_height > 3.0 * 14.0, "wrapped onto several lines: {}", t[0].1.box_height);
+ assert!(t[0].1.outline.bounds().max.x <= 92.0);
+ assert_eq!(t[1].1.width, None, "auto-size");
+ assert!(t[1].1.box_width > 200.0 && t[1].1.box_height < 2.0 * 14.0 * 1.5, "one line: {} × {}", t[1].1.box_width, t[1].1.box_height);
+}
+
+#[test]
+fn runs_in_different_styles_become_blocks_stacked_line_by_line() {
+ let Some((fonts, family)) = fonts() else { return };
+ let title = format!(r##"face="{family}" size="30" bold="true" fillColor="#112233""##);
+ let body = format!(r##"face="{family}" size="12" fillColor="#445566""##);
+ // A title line, two body lines (the second continues in a separate run of the same style),
+ // then a line that mixes both styles: most of its characters are body text.
+ let runs = [run("Title
", &title), run("line one
line ", &body), run("two
", &body), run("Big", &title), run(" and mostly small", &body), run("
", &body)].concat();
+ let field = format!(r#"{runs} "#);
+ let (doc, report) = import_doc(&doc_with(&field), fonts);
+ let t = texts(&doc);
+ let blocks: Vec<(&str, f32, bool)> = t.iter().map(|(_, b)| (b.text.as_str(), b.size, b.bold)).collect();
+ assert_eq!(blocks, [("Title", 30.0, true), ("line one\nline two\nBig and mostly small", 12.0, false)], "trailing empty lines are dropped");
+ assert_eq!(t[1].1.color, Rgba::hex(0x445566));
+ // The body starts where the title's next line would.
+ let title_layout = fonts.layout("Title", &anicraft_text::Style { family: family.clone(), size: 30.0, bold: true, ..Default::default() }).unwrap();
+ let (y0, y1) = (t[0].0.transform.translation().y, t[1].0.transform.translation().y);
+ assert!((y0 - (20.0 + GUTTER)).abs() < 1e-4);
+ assert!((y1 - y0 - title_layout.line_height).abs() < 1e-3, "{y0} → {y1}, line height {}", title_layout.line_height);
+ assert_eq!(t[0].0.transform.translation().x, t[1].0.transform.translation().x, "left-aligned blocks share the left edge");
+ assert_eq!(report.skipped.get("lines with mixed text styles (drawn in their main style)"), Some(&1));
+}
+
+#[test]
+fn centred_auto_size_blocks_centre_on_each_other() {
+ let Some((fonts, family)) = fonts() else { return };
+ let a = format!(r#"face="{family}" size="40" alignment="center""#);
+ let b = format!(r#"face="{family}" size="12" alignment="center""#);
+ let field = format!(r#"{}{} "#, run("WIDE HEADLINE
", &a), run("small", &b));
+ let (doc, _) = import_doc(&doc_with(&field), fonts);
+ let t = texts(&doc);
+ let centre = |i: usize| t[i].0.transform.translation().x + t[i].1.box_width * 0.5;
+ assert!((centre(0) - centre(1)).abs() < 0.01, "{} vs {}", centre(0), centre(1));
+}
+
+#[test]
+fn missing_fonts_fall_back_and_are_reported() {
+ let Some((fonts, family)) = fonts() else { return };
+ let field = format!(
+ r#"{} {}{} "#,
+ run("Hi", r#"face="NoSuchFace-BoldItalic" size="20""#),
+ run("again", r#"face="NoSuchFace-BoldItalic" size="20""#),
+ run("
mono", r#"face="ZzMissingMonoPSMT" size="20""#)
+ );
+ let (doc, report) = import_doc(&doc_with(&field), fonts);
+ let t = texts(&doc);
+ assert_eq!(t.len(), 3);
+ assert_eq!((t[0].1.bold, t[0].1.italic), (true, true), "the face name says bold italic");
+ assert!(fonts.families().contains(&t[0].1.font), "laid out in an installed family: {}", t[0].1.font);
+ assert_eq!(report.missing_fonts.iter().map(String::as_str).collect::>(), ["No Such Face", "Zz Missing Mono"]);
+ assert_eq!(report.fallback_font.as_deref(), Some(family.as_str()));
+ assert_eq!(report.summary(), format!("Imported. Fonts not on this computer, drawn in {family}: No Such Face, Zz Missing Mono."));
+}
+
+#[test]
+fn dynamic_and_input_text_come_across_as_static_text_and_are_reported() {
+ let Some((fonts, _)) = fonts() else { return };
+ let field = format!(
+ r#"{} {} {} "#,
+ run("0", r#"size="16""#),
+ run("type here", r#"size="16" alignment="justify""#),
+ run("down", r#"size="16" indent="5" characterPosition="superscript""#)
+ );
+ let (doc, report) = import_doc(&doc_with(&field), fonts);
+ let t = texts(&doc);
+ assert_eq!(t.iter().map(|(e, _)| e.name.as_str()).collect::>(), ["score", "answer", ""], "instance names are kept");
+ assert_eq!(t[1].1.align, TextAlign::Left);
+ for (what, n) in [("dynamic and input text fields (imported as static text)", 2), ("justified text (drawn left-aligned)", 1), ("vertical text (drawn horizontal)", 1), ("first-line indents", 1), ("superscript and subscript (drawn on the line)", 1)] {
+ assert_eq!(report.skipped.get(what), Some(&n), "{what}: {report:?}");
+ }
+ assert!(report.missing_fonts.is_empty(), "no face asks for the default family");
+}
+
+#[test]
+fn without_fonts_text_is_reported_not_guessed() {
+ let none = Fonts::from_faces(Vec::new());
+ let field = format!(r#"{} "#, run("Hello", r#"face="ArialMT" size="20""#));
+ let (doc, report) = import_doc(&doc_with(&field), &none);
+ assert!(texts(&doc).is_empty());
+ assert_eq!(report.skipped.get("text fields (no fonts on this computer)"), Some(&1));
+ // Empty fields and fields without runs make nothing and report nothing.
+ let (doc, report) = import_doc(&doc_with(r#"
+ "#), &none);
+ assert!(texts(&doc).is_empty() && report.skipped.is_empty(), "{report:?}");
+}
+
+#[test]
+fn hostile_text_fields_import_without_panicking() {
+ let Some((fonts, _)) = fonts() else { return };
+ let many: String = (0..12_000).map(|i| run("x", &format!(r#"size="{}""#, i % 7 + 1))).collect();
+ let long = "y ".repeat(60_000);
+ let field = format!(
+ r#"{many}
+ {}{}
+ z "#,
+ run(&long, ""),
+ run(&long, "")
+ );
+ let start = std::time::Instant::now();
+ let (doc, report) = import_doc(&doc_with(&field), fonts);
+ let t = texts(&doc);
+ assert!(!t.is_empty());
+ assert!(t.iter().all(|(_, b)| b.text.chars().count() <= anicraft_text::MAX_CHARS && b.size.is_finite()));
+ assert!(t.iter().any(|(_, b)| b.text.chars().count() > 99_000 && !b.outline.cmds.is_empty()), "the long field is laid out, cut to the limit");
+ assert!(report.skipped.contains_key("text cut to 100,000 characters per field"), "{report:?}");
+ assert!(start.elapsed().as_secs() < 30, "bounded work: {:?}", start.elapsed());
+}
+
+#[test]
+fn import_with_uses_this_computers_fonts() {
+ if fonts().is_none() {
+ return;
+ }
+ let xml = doc_with(&format!(r#"{} "#, run("Hi", r#"size="20""#)));
+ let read = |p: &str| -> Result>, XflError> { Ok((p == "DOMDocument.xml").then(|| xml.as_bytes().to_vec())) };
+ let (doc, _) = import_with(&read).unwrap();
+ assert_eq!(texts(&doc).len(), 1);
+}
diff --git a/src/main.rs b/src/main.rs
index eeba025e..a399c228 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -23,20 +23,22 @@ use anicraft_engine::Session;
use std::path::{Path, PathBuf};
/// The session to start with: the file given on the command line (through `file.open`, so
-/// `.fla` / `.xfl` import works the same as from the menu), else the sample.
-fn open_session(file: Option<&Path>) -> Session {
- let Some(p) = file else { return Session::new(anicraft_engine::doc::sample::demo()) };
+/// `.fla` / `.xfl` import works the same as from the menu), else the sample. Also the import
+/// report of an Animate document, for the status bar.
+fn open_session(file: Option<&Path>) -> (Session, Option) {
+ let Some(p) = file else { return (Session::new(anicraft_engine::doc::sample::demo()), None) };
let mut s = Session::default();
match s.execute("file.open", &serde_json::json!({"path": p.display().to_string()})) {
Ok(v) => {
- if let Some(r) = v.get("report").and_then(|r| r.as_str()) {
+ let report = v.get("report").and_then(|r| r.as_str()).map(str::to_string);
+ if let Some(r) = &report {
println!("{r}");
}
- s
+ (s, report)
}
Err(e) => {
eprintln!("could not open {}: {e}; starting with the sample", p.display());
- Session::new(anicraft_engine::doc::sample::demo())
+ (Session::new(anicraft_engine::doc::sample::demo()), None)
}
}
}
@@ -47,13 +49,20 @@ fn run(renderer: eframe::Renderer, file: Option<&Path>, shot: Option, o
renderer,
..Default::default()
};
- let session = open_session(file);
+ // The embedded interface font joins the text library before anything lays text out:
+ // opening an Animate document from the command line lays its text out right here.
+ anicraft_engine::text::Fonts::register(theme::embedded_fonts());
+ let (session, report) = open_session(file);
eframe::run_native(
"AniCraft",
options,
Box::new(move |cc| {
let mut a = app::App::new(cc, session, shot);
a.open_panel(open.as_deref());
+ // An imported document says what came across, as opening it from the menu does.
+ if let Some(r) = report {
+ a.status_ok(format!("{r} Save to keep it as an AniCraft document."));
+ }
Ok(Box::new(a))
}),
)
From ef31d386aee26c8dc7fdaa70f88a2a70f89df867 Mon Sep 17 00:00:00 2001
From: Tanish Manku
Date: Mon, 9 Nov 2026 01:51:05 -0700
Subject: [PATCH 05/25] docs: ADR 0014 text from Animate documents; roadmap and
changelog (M4)
---
CHANGELOG.md | 11 +++++
docs/adr/0009-xfl-import.md | 4 +-
docs/adr/0012-text.md | 1 +
docs/adr/0014-xfl-text-import.md | 71 ++++++++++++++++++++++++++++++++
docs/roadmap.md | 5 ++-
5 files changed, 89 insertions(+), 3 deletions(-)
create mode 100644 docs/adr/0014-xfl-text-import.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0c8b9565..850b5539 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,17 @@
## Unreleased
+* **Text in Animate documents.** Opening a `.fla` or XFL now brings its text across as text
+ you can edit: titles, captions and paragraphs keep their font, size, colour, bold and
+ italic, alignment, letter and line spacing, position, and fixed width (wrapping) or
+ auto-size. A field whose lines use different styles (a big title over smaller lines)
+ becomes one text block per style, stacked as in Animate; a line that mixes styles takes
+ the style of most of its characters, and the report counts it. Fonts that aren't on this
+ computer fall back to the default, and the status bar names them ("Fonts not on this
+ computer, drawn in Arial: Futura."). Dynamic and input text come across as static text and
+ are reported. The import report now also shows in the status bar when a document is
+ opened from the command line (ADR 0014).
+
* **ActionScript on the roadmap** (ADR 0013, low priority, M6): first keep the scripts in
imported Animate files, with an Actions panel, then play the common timeline controls (stop,
play, go to a frame or label, button clicks) in Test Movie and HTML canvas export. Until
diff --git a/docs/adr/0009-xfl-import.md b/docs/adr/0009-xfl-import.md
index f640d44f..63fd0a6b 100644
--- a/docs/adr/0009-xfl-import.md
+++ b/docs/adr/0009-xfl-import.md
@@ -44,5 +44,7 @@ own timelines, nested to any depth.
* Imported documents render and animate in AniCraft immediately and can be edited with every
tool, then saved as `.anicraft`.
-* Next slices: bitmaps (needs bitmap fills, M5), text (M5), masks (M2), motion tweens, shape
+* Text fields come across as text blocks (ADR 0014: one block per run of same-style lines,
+ missing fonts named in the report).
+* Next slices: bitmaps (needs bitmap fills, M5), masks (M2), motion tweens, shape
tweens, more scenes, and a corpus of larger self-authored files.
diff --git a/docs/adr/0012-text.md b/docs/adr/0012-text.md
index 751dfa77..9733c800 100644
--- a/docs/adr/0012-text.md
+++ b/docs/adr/0012-text.md
@@ -44,6 +44,7 @@ so neither may depend on which fonts happen to be installed.
block, stored like any shape's path).
* Changing a font on a computer that lacks it changes the look of that block only when it is
edited, and the user is told.
+* Text in Animate documents imports onto this model (ADR 0014).
* Not yet: per-character styles in one block, vertical text, text along a path, input and
dynamic text fields (with scripting, M6), font embedding for export, glyph fallback across
fonts for missing characters (missing glyphs draw as the font's "notdef" box).
diff --git a/docs/adr/0014-xfl-text-import.md b/docs/adr/0014-xfl-text-import.md
new file mode 100644
index 00000000..1bd1525a
--- /dev/null
+++ b/docs/adr/0014-xfl-text-import.md
@@ -0,0 +1,71 @@
+# ADR 0014: Text from Animate documents
+
+* Status: accepted (2026-11-09)
+* Relates to: roadmap M4 (XFL import), ADR 0009 (XFL import), ADR 0012 (text)
+
+## Context
+
+Animate documents are full of text: titles, captions, speech bubbles, credits, score
+counters. The XFL importer reported every text field as skipped. AniCraft now has a text
+engine (ADR 0012): `ElementKind::Text(TextBlock)`, one style per block, laid out by
+`anicraft-text` and stored as outlines.
+
+An XFL text field (`DOMStaticText`, `DOMDynamicText`, `DOMInputText`) has a matrix, a box
+(`width`, `height`, optional `left`/`top`), `autoExpand` for auto-size versus fixed width, and
+a list of text runs: `… `.
+The attributes give a face (a PostScript name such as `Arial-BoldMT`, or a device font such
+as `_sans`), size, fill colour and alpha, alignment, letter spacing, line spacing, margins
+and indent. Lines end with a carriage return (`
`). This structure comes from public
+descriptions of XFL and from self-authored files only.
+
+AniCraft's block has one style, but a field may have runs with different styles.
+
+## Decision
+
+1. **A field becomes one text block per run of consecutive lines that share a style.** Runs
+ are split into lines at line breaks; each line takes one style; consecutive lines with the
+ same style make one block, and the blocks stack downwards, each starting where the line
+ after the previous block would (`lines × line_height`, which `anicraft-text` now reports).
+ This keeps the most common mixed case exact: a big title line over smaller body lines,
+ each block editable as text. A **line** that mixes styles (one bold word in a sentence)
+ takes the style of most of its visible characters, and the report counts it. Splitting
+ inside a line would need per-glyph positions from one shared layout; it waits for
+ per-character styles in the text model (ADR 0012, "not yet").
+2. **Placement.** The element's transform is the field's matrix, then the box offset
+ (`left`, `top`) plus a 2-pixel gutter, the inset of text in Animate's text fields. A
+ fixed-width field wraps at `width` (less its margins); an auto-size field never wraps, and
+ its centred or right-aligned blocks align against the widest block, as lines of one field
+ do.
+3. **Fonts.** A face is looked up on this computer by its PostScript name, then as a family
+ name (ignoring case and spaces), then as the family the PostScript name suggests
+ (`TimesNewRomanPS-BoldItalicMT` is Times New Roman, bold, italic); `_sans`, `_serif` and
+ `_typewriter` map to installed sans, serif and monospaced families. Boldness and slant
+ come from the face (and `bold`/`italic` attributes when present). A family that isn't
+ installed falls back as the text engine does (ADR 0012), the block records the family
+ actually used, and the report names the missing families and the fallback: "Fonts not on
+ this computer, drawn in Arial: Futura." The lookup lives in `anicraft-text`
+ (`Fonts::find_face`, `guess_family`), so other importers can use it.
+4. **Dynamic and input text come across as static text**, keeping their instance name on the
+ element, and are counted in the report. They become fields with scripting (M6).
+5. **Report, don't guess** (ADR 0009): justified text (drawn left-aligned), first-line
+ indents, superscript and subscript, vertical text, filters on text, text cut to the
+ engine's 100,000-character limit, and text on a computer with no fonts at all (nothing is
+ drawn) are counted. Empty fields make nothing.
+6. **Import lays text out once, with this computer's fonts.** The imported document stores
+ the outlines like any text (ADR 0012), so it then looks the same everywhere. The desktop app
+ registers its embedded Inter before opening a file from the command line, so command-line
+ and menu imports lay out with the same fonts.
+
+## Consequences
+
+* Imported titles and captions render, export and stay editable as text (Text tool, Properties,
+ `text.edit`).
+* Lines with mixed styles lose their minor styles until text blocks have per-character styles;
+ the report says how many.
+* Positions depend on the fonts' metrics: with the original fonts installed, text sits where
+ Animate puts it within about a pixel; a fallback family changes widths, as it would in
+ Animate.
+* The shared XML reader now keeps character data (`Element::text`), needed for
+ ``; indentation between elements is dropped so memory doesn't grow with it.
+* Not yet: per-character styles, kerning and rendering-mode settings, links on text, text
+ along a path, input and dynamic fields with scripting (M6), embedded fonts in the document.
diff --git a/docs/roadmap.md b/docs/roadmap.md
index 52eee30c..45c1c6ca 100644
--- a/docs/roadmap.md
+++ b/docs/roadmap.md
@@ -13,7 +13,7 @@ milestone ends with a green tree: build, tests, clippy, a `--screenshot` check a
| Timeline | **Frame selection**: click, Shift-click or drag across frames and layers; F5/Shift+F5, F6/F7 and Shift+F6 (keys, buttons and right-click menu) act on the whole selection; drag selected keyframes left or right to move them, and up or down onto other layers (the source keeps empty frames, as in Animate) (with a drop outline; one undo step; keys they land on are replaced, and spans fill the frames left behind); removing or clearing selected frames that hold artwork asks first. **Cut/Copy/Paste Frames** (Ctrl+Alt+X/C/V, and plain Ctrl+X/C/V after clicking the timeline): own clipboard, copies cut exactly at the selection edges (mid-tween state kept), paste inserts like Animate, several layers paste onto the layers below (missing ones are created), fresh element ids, symbols travel with them. **Span length by dragging its end** (resize cursor, live outline with the length in frames and seconds; later frames move with it). Headless: `layers`/`count` on the frame commands, `timeline.move_keyframes`, `timeline.cut_frames/copy_frames/paste_frames`. Layers (show/lock/outline), keyframes, blank keyframes, insert/remove frames, classic tweens with 8 easing presets + curve preview, **shape tweens** (morph between any two shapes: segments made cubic, subpaths paired by size and grown from or shrunk to a point when counts differ, segment counts equalized by subdivision, windings matched and start points aligned; amber spans; classic ⇄ shape keeps the easing), auto-key when editing inside a tween, frame labels, symbol nesting: graphics keep step with their timeline (loop, play once, single frame, first frame; set in Properties), movie clips loop their own timeline from when the instance appears (continuous across keyframes holding the same instance), buttons show their Up frame, onion skin (±2 frames), looping playback. **Mask layers**: right-click a layer › Mask turns it into a mask over the layer below (Masked adds more layers to it); masked layers are indented under a stencil icon; the mask applies on the stage and in every export alike, and while the mask layer is unlocked its edge shows in the layer colour so it can be picked and reshaped; masked-away parts cannot be picked; layers moved in under a mask join it, moved out leave it, and a mask moves with its whole group; masks inside symbols nest. Headless: `layer.toggle_mask`, `layer.set_type`. **Scenes** (ADR 0011): the movie is an ordered list of scenes, each its own timeline, edited one at a time (scene menu on the edit bar, Insert › Scene, Modify › Scene, Shift+PageUp/PageDown); add, duplicate (fresh ids), rename, reorder and remove (asks when the scene has artwork; undoable); PNG-sequence and GIF exports play every scene in order. **Layer folders**: nestable folders (depth ≤ 16) holding layers and masks through `Layer.parent`, one invariant (`Timeline::repair_masks`: a child sits below its parent inside the parent's unbroken run; broken links fall back to the nearest valid ancestor); hiding or locking a folder hides or locks its contents (rendering, picking, drawing); folders open and close on the timeline (view state); layers move in and out with Up/Down, a folder moves with its contents; deleting a folder deletes its contents (asks first). No motion editor yet; **motion guides**: guided layers (children of a guide through `Layer.parent`) have their classic tweens follow the guide's first path by arc length, from the point nearest each start keyframe to the point nearest its end (`geom::walk::PathWalk`), optionally orienting to the path; guide artwork is listed for picking and editing, drawn on the stage as a line, and never rendered or exported. |
| Drawing | Selection (click, shift-add, marquee, drag-move, arrow nudge), **Free Transform (Q)**: scale from corner/edge handles (Shift proportional, Alt from centre), rotate outside corners (Shift snaps 15°), move; one undo step per drag. Rectangle (corner radius), oval, PolyStar, line (45° snap), hand, zoom. **Pen (P)**: click for corners, drag for smooth handles (Alt breaks them), close on the first point, Enter/Esc/last-point click finishes, Backspace takes back a point; one undo step per path. **Pencil (Shift+Y)**: Smooth (Schneider curve fitting with corner detection), Straighten and Ink modes, smoothing relative to the screen. **Subselection (A)**: anchors and handles on selected shapes, drag points/handles (anchors bring their handles; one undo step per drag), point marquee, double-click an edge to add a point, Delete removes points, right-click Make Smooth/Corner; closed shapes' start point and closing edge edit like any other. **Cut/Copy/Paste in Center/Paste in Place** (the clipboard carries symbols across documents). **Rotate 90° CW/CCW, Flip H/V. Align** left/centre/right/top/middle/bottom (Ctrl+Alt+1…6; a single element aligns to the stage) and distribute. Convert to symbol / break apart; arrange; duplicate. Headless: `draw.path`, `draw.freehand`, `path.move_points/add_point/delete_points/convert_point`. **Paint Bucket (K)**: click a fill to recolour it, or inside an outline (one shape or several) to fill the enclosed area; gap size None/Small/Medium/Large closes openings; the fill is traced and curve-fitted into a new shape placed under its lines; open areas say so instead of flooding. **Ink Bottle (S)**: gives the clicked shape the current stroke. Headless: `paint.bucket`, `paint.ink`. Tool options show first in Properties while a drawing tool is active. **Text (T)** (ADR 0012): click to type on the stage, click or double-click text to edit it; font (installed families, plus the embedded Inter), size, colour, bold, italic, alignment, letter/line spacing, wrap width; the last style is kept for new text; laid out by `anicraft-text` (`fontdb` discovery, `harfrust` shaping, `skrifa` outlines) and stored as outlines with the source, so rendering never needs the font; Break Apart makes a shape. No brush or merge drawing yet. |
| Headless | CLI: info, render, render-seq, **gif**, commands, exec, run, serve (JSON-lines). **MCP server** (`anicraft-cli mcp`, `docs/mcp.md`): stdio JSON-RPC, protocol 2025-06-18 (and 2025-03-26, 2024-11-05); five tools over the command registry (list, run, run a script, describe the document, render a frame as a PNG picture); confirmation tiers and undo apply as in the app. |
-| Files | `.anicraft` JSON load/save (v3, with scenes; v1 and v2 files open as one scene), PNG frame and sequence export, **animated GIF export** (parallel render and quantize, exact frame timing, looping), **SVG frame export** (from the same evaluated frame as the renderer: stage-space paths, renderer-matched stroke widths, gradients under `gradientTransform`, colour effects baked in, masks as nested `clipPath`s). **Opens Animate documents** (`.fla`, `.xfl`, XFL folders; ADR 0009): stage, first scene, layers, keyframes, labels, classic tweens with ease, shapes (solid/linear/radial fills, strokes), groups, primitives, symbol instances (matrix, alpha, tint, loop), library symbols, **shape tweens**, **layer folders** and **mask layers** (masks inside folders too); imported files are untitled so Save never overwrites them; what isn't supported yet is reported after opening. Every scene comes across. **Bitmaps**: library items whose image is in the package as PNG or JPEG (the original in `LIBRARY/`, else the `bin/` data file when it is PNG or JPEG), instances, and bitmap fills with their matrix (twips scale removed; repeating unless clipped); Animate's own bitmap encodings are not public and are reported, not decoded. No text, motion tweens or shape hints from XFL yet; frame scripts are counted in the import report but not kept yet (ADR 0013); **Import to Stage (Ctrl+R) for SVG drawings**: editable shapes on a new layer at the playhead, with groups, use and symbols, transforms, viewBox, styles, opacity and gradients; unsupported parts are reported. **Sprite sheet export**: movie frames on one PNG grid (parallel render, columns/padding/scale, transparent or stage background) with a "JSON hash" frame map (rectangles, sizes, per-frame durations). **Video export**: WebM (VP9) or MP4 (H.264) by streaming raw frames, in order and rendered in parallel batches, to the user's own ffmpeg (no encoder bundled; ffmpeg from a parameter, `ANICRAFT_FFMPEG` or the PATH; argument lists, never a shell). **Lottie export** (`file.export_lottie`): frame-accurate rather than re-keyed: each frame is evaluated, artwork that persists (same layer, element, occurrence and path structure) becomes one shape layer with outlines baked to stage space, and whatever changes (outlines, colours, gradient points, stroke width, opacity, masks as layer masks) is written as hold keyframes where it changes; one layer order consistent with every frame (topological); checked against the reference web player (matches the renderer). Reported, not exported: bitmap fills, nested masks (innermost kept), group fades (per shape), stretched radial gradients (circles). |
+| Files | `.anicraft` JSON load/save (v3, with scenes; v1 and v2 files open as one scene), PNG frame and sequence export, **animated GIF export** (parallel render and quantize, exact frame timing, looping), **SVG frame export** (from the same evaluated frame as the renderer: stage-space paths, renderer-matched stroke widths, gradients under `gradientTransform`, colour effects baked in, masks as nested `clipPath`s). **Opens Animate documents** (`.fla`, `.xfl`, XFL folders; ADR 0009): stage, first scene, layers, keyframes, labels, classic tweens with ease, shapes (solid/linear/radial fills, strokes), groups, primitives, symbol instances (matrix, alpha, tint, loop), library symbols, **shape tweens**, **layer folders** and **mask layers** (masks inside folders too); imported files are untitled so Save never overwrites them; what isn't supported yet is reported after opening. Every scene comes across. **Bitmaps**: library items whose image is in the package as PNG or JPEG (the original in `LIBRARY/`, else the `bin/` data file when it is PNG or JPEG), instances, and bitmap fills with their matrix (twips scale removed; repeating unless clipped); Animate's own bitmap encodings are not public and are reported, not decoded. **Text** (ADR 0014): static, dynamic and input text fields become text blocks laid out by `anicraft-text`, with face (by PostScript name, family, or the family the name suggests; `_sans`/`_serif`/`_typewriter`), size, colour, bold/italic, alignment, letter and line spacing, margins, matrix, fixed width (wraps) or auto-size, and several lines; runs in different styles become one block per run of same-style lines, stacked as in Animate; a line mixing styles takes its main style and is counted; missing families fall back and are named in the report; dynamic/input fields come across as static text (reported). No per-character styles, motion tweens or shape hints from XFL yet; frame scripts are counted in the import report but not kept yet (ADR 0013); **Import to Stage (Ctrl+R) for SVG drawings**: editable shapes on a new layer at the playhead, with groups, use and symbols, transforms, viewBox, styles, opacity and gradients; unsupported parts are reported. **Sprite sheet export**: movie frames on one PNG grid (parallel render, columns/padding/scale, transparent or stage background) with a "JSON hash" frame map (rectangles, sizes, per-frame durations). **Video export**: WebM (VP9) or MP4 (H.264) by streaming raw frames, in order and rendered in parallel batches, to the user's own ffmpeg (no encoder bundled; ffmpeg from a parameter, `ANICRAFT_FFMPEG` or the PATH; argument lists, never a shell). **Lottie export** (`file.export_lottie`): frame-accurate rather than re-keyed: each frame is evaluated, artwork that persists (same layer, element, occurrence and path structure) becomes one shape layer with outlines baked to stage space, and whatever changes (outlines, colours, gradient points, stroke width, opacity, masks as layer masks) is written as hold keyframes where it changes; one layer order consistent with every frame (topological); checked against the reference web player (matches the renderer). Reported, not exported: bitmap fills, nested masks (innermost kept), group fades (per shape), stretched radial gradients (circles). |
| Tests | 133 tests (adds point editing, closed-path anchors, curve fitting, pen/pencil/subselection commands, the Pen's path data, frame ranges, keyframe moves, range confirmations, frame selection and the frame clipboard): unit, analytic render, band/determinism, robustness fuzz over all commands, round trip (v1 and v2 files), structural sharing and history budget, render-service equivalence, confirmations, clipboard, transforms and align, GIF decode and timing, free-transform maths, UI-guideline enforcement, CLI. |
| Ease of use & safety | **Visual language** (ADR 0008, revised): graphite palette, corners by role (square structure, softened controls, rounder menus and dialogs with soft depth), borders only between layout regions, flat buttons with a visible focus ring, vibrant timeline blocks (mint artwork, violet tweens), sentence-case headings, **collapsible sections with rules** (Preferences, Properties, dock, shortcut sheet), **Lucide icons** stroked as vectors via a new full SVG path reader; click targets ≥ 28 px (tools 40, rows 28, toggles 24); palette contrast, target sizes and "no raw colours or radii" are enforced by tests. Product principles written (`docs/product-principles.md`). Tiered destructive-action confirmations, enforced in the engine (ADR 0004). Unsaved-changes guard on close/new/open. Overwrite checks for saves and exports. "Ctrl+Z to undo" hints. Command palette (Ctrl+K). Shortcut sheet (F1). Right-click menus on stage, frames and layers. Save As (Ctrl+Shift+S). **Shortcut editor** (F1): every menu command, tool and view key can be rebound, given extra keys or unbound; recording asks before taking a key from another action, reserved keys (palette, editor, Preferences, quit, play, Esc, Space, Tab) stay fixed, per-action and global reset; only the changes are saved in preferences, so untouched actions follow new defaults; menus, tooltips and the palette show the keys in effect. |
| Platforms & preferences | ADR 0006 platform layer: ⌘ shortcut labels and an AniCraft app menu with a unified title bar on macOS; Exit and Preferences (Ctrl+U) on Windows and Linux; native file dialogs (XDG portal on Linux, with a fallback switch); wgpu with automatic OpenGL fallback; per-OS settings folder. **Preferences** window: interface and data fonts (bundled default or any installed font), interface scale, stage render mode, file dialogs, reset confirmations. Edits render live (fixed the missing-repaint bug). Not yet: native macOS NSMenu, macOS/Linux CI runners. Verified on Windows only so far. |
@@ -74,7 +74,8 @@ has a key (P is the Pen, as in Animate).
Next, in order:
1. M4 **XFL import, next slices**: ~~masks (with M2 mask layers)~~ ✅, ~~shape tweens~~ ✅,
- ~~every scene~~ ✅, ~~bitmaps~~ ✅ (PNG/JPEG data), motion tweens, text (with M5), and a larger self-authored
+ ~~every scene~~ ✅, ~~bitmaps~~ ✅ (PNG/JPEG data), ~~text~~ ✅ (one style per line; per-character styles with
+ the text model), motion tweens, and a larger self-authored
corpus checked by render tests.
2. ~~SVG import~~ ✅ and ~~SVG frame export~~ ✅. Next for SVG: text, clip paths and masks (onto mask layers), dashes.
From 3d968294fad3a9f504e0f6683c0469613333ec19 Mon Sep 17 00:00:00 2001
From: BFlat
Date: Mon, 9 Nov 2026 17:15:01 +0800
Subject: [PATCH 06/25] App icon (engraved rabbit) and README with screenshots
(#70)
- assets/app-icon: the rabbit vectorised onto the shared Crafting Apps
tile (512 viewBox, rx 112) with a neutral white paper tone; renders for
Windows (.ico), Linux (hicolor) and Apple's icon grid (padded tile);
trace.py and scripts/icons.sh regenerate them.
- The app shows it on the window, the macOS Dock, the Windows taskbar
and anicraft.exe (winresource), and in Help > About (--open about).
- README: icon header, screenshots, the sample animation as a GIF,
quick start, status, downloads and the Crafting Apps table.
- ATTRIBUTION and CHANGELOG rows for the new files.
---
ATTRIBUTION.md | 6 +-
CHANGELOG.md | 5 +
Cargo.lock | 47 ++-
Cargo.toml | 4 +
README.md | 272 ++++++++++--------
assets/app-icon/LICENSE.txt | 12 +
assets/app-icon/README.md | 52 ++++
assets/app-icon/anicraft-1024.png | Bin 0 -> 346598 bytes
assets/app-icon/anicraft-macos-512.png | Bin 0 -> 118124 bytes
assets/app-icon/anicraft-padded-1024.png | Bin 0 -> 281098 bytes
assets/app-icon/anicraft-small.svg | 1 +
assets/app-icon/anicraft.ico | Bin 0 -> 92731 bytes
assets/app-icon/anicraft.svg | 1 +
.../128x128/apps/ai.storyteller.anicraft.png | Bin 0 -> 19779 bytes
.../16x16/apps/ai.storyteller.anicraft.png | Bin 0 -> 755 bytes
.../24x24/apps/ai.storyteller.anicraft.png | Bin 0 -> 1396 bytes
.../256x256/apps/ai.storyteller.anicraft.png | Bin 0 -> 59607 bytes
.../32x32/apps/ai.storyteller.anicraft.png | Bin 0 -> 2185 bytes
.../48x48/apps/ai.storyteller.anicraft.png | Bin 0 -> 4136 bytes
.../512x512/apps/ai.storyteller.anicraft.png | Bin 0 -> 148811 bytes
.../64x64/apps/ai.storyteller.anicraft.png | Bin 0 -> 6458 bytes
.../scalable/apps/ai.storyteller.anicraft.svg | 1 +
assets/app-icon/trace.py | 71 +++++
build.rs | 18 +-
docs/images/sample-animation.gif | Bin 0 -> 676377 bytes
docs/images/shot-1-stage.png | Bin 0 -> 378216 bytes
docs/images/shot-2-subselection.png | Bin 0 -> 395480 bytes
docs/images/shot-3-frames.png | Bin 0 -> 382042 bytes
docs/images/shot-4-transform.png | Bin 0 -> 394223 bytes
docs/images/shot-5-palette.png | Bin 0 -> 407115 bytes
docs/images/shot-6-shortcuts.png | Bin 0 -> 454989 bytes
docs/images/shot-7-preferences.png | Bin 0 -> 544141 bytes
scripts/icons.sh | 50 ++++
src/app.rs | 18 ++
src/main.rs | 2 +-
src/platform.rs | 12 +-
36 files changed, 452 insertions(+), 120 deletions(-)
create mode 100644 assets/app-icon/LICENSE.txt
create mode 100644 assets/app-icon/README.md
create mode 100644 assets/app-icon/anicraft-1024.png
create mode 100644 assets/app-icon/anicraft-macos-512.png
create mode 100644 assets/app-icon/anicraft-padded-1024.png
create mode 100644 assets/app-icon/anicraft-small.svg
create mode 100644 assets/app-icon/anicraft.ico
create mode 100644 assets/app-icon/anicraft.svg
create mode 100644 assets/app-icon/hicolor/128x128/apps/ai.storyteller.anicraft.png
create mode 100644 assets/app-icon/hicolor/16x16/apps/ai.storyteller.anicraft.png
create mode 100644 assets/app-icon/hicolor/24x24/apps/ai.storyteller.anicraft.png
create mode 100644 assets/app-icon/hicolor/256x256/apps/ai.storyteller.anicraft.png
create mode 100644 assets/app-icon/hicolor/32x32/apps/ai.storyteller.anicraft.png
create mode 100644 assets/app-icon/hicolor/48x48/apps/ai.storyteller.anicraft.png
create mode 100644 assets/app-icon/hicolor/512x512/apps/ai.storyteller.anicraft.png
create mode 100644 assets/app-icon/hicolor/64x64/apps/ai.storyteller.anicraft.png
create mode 100644 assets/app-icon/hicolor/scalable/apps/ai.storyteller.anicraft.svg
create mode 100644 assets/app-icon/trace.py
create mode 100644 docs/images/sample-animation.gif
create mode 100644 docs/images/shot-1-stage.png
create mode 100644 docs/images/shot-2-subselection.png
create mode 100644 docs/images/shot-3-frames.png
create mode 100644 docs/images/shot-4-transform.png
create mode 100644 docs/images/shot-5-palette.png
create mode 100644 docs/images/shot-6-shortcuts.png
create mode 100644 docs/images/shot-7-preferences.png
create mode 100755 scripts/icons.sh
diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md
index 857c5956..7f2e5a00 100644
--- a/ATTRIBUTION.md
+++ b/ATTRIBUTION.md
@@ -21,6 +21,8 @@ shaders or SDK code).
| emoji-icon-font (via `epaint_default_fonts`) | Symbol fallback | John Slegers | | MIT, [`licenses/fonts/LICENSE-emoji-icon-font.txt`](licenses/fonts/LICENSE-emoji-icon-font.txt) |
| `assets/icons/anicraft-*.svg` (10 files: align, distribute, mask and masked layer) | Align panel and layer-type icons | AniCraft contributors | Original work, drawn on Lucide's 24-unit grid and stroke style | MIT OR Apache-2.0 |
| `assets/icons/*.svg` except `anicraft-*` (32 files: tools, transport, layer toggles, folders, guide, image, text, chevrons) | UI icons, stroked by `src/icons.rs` | Lucide Icons and Contributors (some derived from Feather by Cole Bemis) | (`icons/.svg`), copied unchanged from the PhotoCraft sibling project's set | ISC (Lucide) and MIT (Feather), [`licenses/icons/LICENSE-lucide.txt`](licenses/icons/LICENSE-lucide.txt) |
+| `assets/app-icon/` (`anicraft.svg`, `anicraft-small.svg` and every render: PNGs, `anicraft.ico`, `hicolor/`) | App icon (engraved rabbit): window, Dock, taskbar, `anicraft.exe`, Help › About | Project owner (ArtCraft team) | Original artwork drawn in ArtCraft for AniCraft, vectorised by `assets/app-icon/trace.py` and rendered by `scripts/icons.sh` | MIT OR Apache-2.0 ([`assets/app-icon/LICENSE.txt`](assets/app-icon/LICENSE.txt)) |
+| `docs/images/` (screenshots and `sample-animation.gif`) | README | AniCraft contributors | Original work: AniCraft's own screenshots (`--screenshot`) and sample animation (`anicraft-cli gif`) | MIT OR Apache-2.0 |
| Library symbol-kind marks, selection handles, timeline marks | UI | AniCraft contributors | Original work, drawn in code (`src/panels.rs`, `src/timeline.rs`, `src/stage.rs`) | MIT OR Apache-2.0 |
| Sample animation (ball, star, sun, hills, sky) | First launch, tests, CLI `--sample` | AniCraft contributors | Original work, generated in code (`crates/doc/src/sample.rs`) | MIT OR Apache-2.0 |
| Colour theme | UI | AniCraft contributors | Original work (`src/theme.rs`) | MIT OR Apache-2.0 |
@@ -45,8 +47,8 @@ here.
| Inter Regular | UI prose (primary) | The Inter Project Authors (Rasmus Andersson) | SIL OFL 1.1, shipped as `OFL-Inter.txt` |
| JetBrains Mono Regular | UI data: timeline, readouts, values, shortcuts (primary) | The JetBrains Mono Project Authors | SIL OFL 1.1, shipped as `OFL-JetBrainsMono.txt` |
-No image, icon, sound or font *files* are committed. Everything above is either embedded by a
-dependency crate or generated by our code.
+No sound or font *files* are committed, and every committed image is listed above. Everything
+else is either embedded by a dependency crate or generated by our code.
## Algorithms and published techniques
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 850b5539..084be34a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
## Unreleased
+* **App icon**: an engraved rabbit on AniCraft yellow, on the same rounded tile as the other
+ Crafting Apps. It shows on the window, the macOS Dock (on Apple's icon grid), the Windows
+ taskbar and `anicraft.exe`, and in Help › About. Files and how to regenerate them are in
+ `assets/app-icon/`.
+* **README**: screenshots of the app and the sample animation, and a quick start.
* **Text in Animate documents.** Opening a `.fla` or XFL now brings its text across as text
you can edit: titles, captions and paragraphs keep their font, size, colour, bold and
italic, alignment, letter and line spacing, position, and fixed width (wrapping) or
diff --git a/Cargo.lock b/Cargo.lock
index 06ab8f70..a4a842d5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -188,6 +188,7 @@ dependencies = [
"rfd",
"serde",
"serde_json",
+ "winresource",
]
[[package]]
@@ -2782,6 +2783,15 @@ dependencies = [
"syn 3.0.9",
]
+[[package]]
+name = "serde_spanned"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782"
+dependencies = [
+ "serde_core",
+]
+
[[package]]
name = "shlex"
version = "2.0.1"
@@ -3058,10 +3068,25 @@ dependencies = [
]
[[package]]
-name = "toml_datetime"
-version = "1.1.2+spec-1.1.0"
+name = "toml"
+version = "1.2.1+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053"
+checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7"
+dependencies = [
+ "indexmap",
+ "serde_core",
+ "serde_spanned",
+ "toml_datetime",
+ "toml_parser",
+ "toml_writer",
+ "winnow",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "1.1.3+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49"
dependencies = [
"serde_core",
]
@@ -3087,6 +3112,12 @@ dependencies = [
"winnow",
]
+[[package]]
+name = "toml_writer"
+version = "1.2.0+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"
+
[[package]]
name = "tracing"
version = "0.1.44"
@@ -3905,6 +3936,16 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "winresource"
+version = "0.1.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2bc6d36480b829272a5bdabf08e6dca8004761c1da7e35efef800540c66221b"
+dependencies = [
+ "toml",
+ "version_check",
+]
+
[[package]]
name = "wit-bindgen"
version = "0.57.1"
diff --git a/Cargo.toml b/Cargo.toml
index 46c42291..9a89227d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -76,6 +76,10 @@ serde.workspace = true
fontdb.workspace = true
serde_json.workspace = true
+[build-dependencies]
+# Embeds the app icon in anicraft.exe on Windows (build.rs); does nothing on other targets.
+winresource = "0.1"
+
[lints]
workspace = true
diff --git a/README.md b/README.md
index 39abdae8..79cf8120 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,11 @@
+
+
+
+
+
AniCraft
@@ -16,16 +21,15 @@
A native 2D vector animation editor with timeline, layers, keyframes, classic and shape tweens,
onion skinning, and an egui stage. It runs natively on macOS, Windows, Linux and FreeBSD,
- and in the browser via WebAssembly.
- By the ArtCraft team.
+ and in the browser via WebAssembly. Built by the ArtCraft team.
-
-
-
-
-
+
+
+
+
+
@@ -40,117 +44,157 @@
-> [!NOTE]
-> **ArtCraft is a community of artists from all walks of life.** Painters, photographers,
-> filmmakers, illustrators, designers, animators, hobbyists, and people who picked up a pencil
-> last week. If you make things, you're one of us. **[Come say hi on Discord](https://discord.gg/artcraft).**
-
- Why AniCraft ·
- Features ·
- Build and run ·
- Headless & Agents ·
- Architecture ·
- Status ·
- Downloads ·
- Crafting Apps ·
- Discord
+
+ The sample animation : stage, tools, timeline with classic tweens, and Properties with the easing curve · cargo run
-
+> [!NOTE]
+> **ArtCraft is a community of artists from all walks of life.** Painters, animators, filmmakers,
+> illustrators, game makers — if you make things, you're one of us. **[Come say hi on Discord](https://discord.gg/artcraft).**
+
+
+ A look around ·
+ Made in AniCraft ·
+ Why AniCraft ·
+ Features ·
+ Quick start ·
+ Status ·
+ Downloads ·
+ The Crafting Apps ·
+ License
+
+
+## A look around
-
-
- 🎛️ Familiar by design
- Stage, tools, timeline, layers, keyframes, properties and library are where your hands expect them. If you know Adobe Animate or Flash, you already know AniCraft.
-
-
- ⚡ Native and fast
- A pure Rust engine with a deterministic analytic anti-aliasing CPU oracle renderer, GPU-ready via wgpu / egui, and rayon row parallelism. No Electron, no webview, no waiting.
-
-
- 🎞️ Vector tweens
- Classic tweens with easing presets and shape tweens with arbitrary contour morphing (geom::morph). The document is plain data, and the picture at a frame is a pure function evaluate(doc, frame).
-
-
- 🤖 Headless first
- Every action is an engine command. Drive the exact same engine from the UI, the CLI or the JSON-lines agent channel.
-
-
+
+
+
+ Subselection, Pen and Pencil : real Bézier anchors and handles, curve-fitted freehand lines
+
+
+
+ Timeline : frame ranges across layers, keyframes you drag, classic and shape tweens
+
+
+
+
+
+ Free Transform and symbols : scale, rotate and move instances with nested timelines
+
+
+
+ Command palette : every engine command, one search away (Ctrl+K)
+
+
+
+
+
+ Shortcut editor : rebind, add or clear the key for any command or tool (F1)
+
+
+
+ Preferences : fonts, interface scale, stage rendering and confirmations
+
+
-
+## Made in AniCraft
+
+The sample animation, exported as an animated GIF by AniCraft's own renderer from the command line
+(`anicraft-cli gif --sample --out sample.gif --scale 0.5`).
+
+
+
+ Sample animation : classic tweens with easing, symbols with their own timelines, 48 frames at 24 fps
+
## Why AniCraft
-AniCraft is a clean-room, native 2D vector animation studio designed for animators, motion designers,
-and game developers. Built from scratch in pure Rust, it delivers a modern, lightweight, high-performance
-alternative to Adobe Animate with zero runtime bloat:
-
-* **Pure Rust & memory safe**: No webviews, no Electron, and no unsafe code (`unsafe_code = "forbid"`).
-* **Deterministic CPU oracle renderer**: Analytic anti-aliasing via signed-area coverage accumulation, non-zero and even-odd fill rules, linear and radial gradients, round-join strokes, and multi-threaded band rendering.
-* **Non-destructive & live**: Edits render live in the same frame. Layered architecture with structural sharing (`Arc`) keeps undo and history instant and memory-proportional.
-* **Interchange ready**: Open Adobe Animate documents (`.fla`, `.xfl`, XFL folders), import SVG drawings straight to the stage, export PNG frames and sequences, animated GIFs with palette quantization, and SVG vector frames.
+- **Familiar.** Stage, tools, timeline, layers, keyframes, Properties and Library are where your hands
+ expect them. If you know Adobe Animate or Flash, you already know AniCraft.
+- **Fast.** A pure Rust engine with a deterministic, analytic anti-aliasing CPU renderer, band-parallel
+ rendering, a tiled stage and a background render worker. No Electron, no webview, no waiting.
+- **Robust.** No `unsafe` code (`unsafe_code = "forbid"`), no panics on input, every command fuzzed, and
+ undo with structural sharing (`Arc`), so history stays instant and memory-proportional.
+- **Time is a function.** The document is plain data, and the picture at a frame is a pure function,
+ `evaluate(doc, frame)`. Classic tweens with easing presets and shape tweens with contour morphing.
+- **Open.** A documented native format (`.anicraft`, JSON). Opens Adobe Animate documents (`.fla`,
+ `.xfl`, XFL folders), imports SVG to the stage, and exports PNG frames and sequences, animated GIF,
+ SVG frames, sprite sheets, Lottie, and WebM/MP4 through your own ffmpeg.
+- **Agent-native.** Every action is an engine command. Drive the same engine from the UI, the CLI, a
+ JSON-lines channel or the **MCP server**, so Claude and other agents can draw, animate and export.
## Features
-### Stage and Drawing Tools
-* **Selection & Subselection**: Select, move, nudge with arrow keys, anchor and Bézier handle editing on paths (`Subselection (A)`), add and delete points.
-* **Vector Drawing**: Pen (`P`) with smooth handles and corner conversion, Pencil (`Shift+Y`) with Schneider curve fitting and smoothing, Rectangle (with corner radii), Oval, PolyStar, and Line tools.
-* **Free Transform (`Q`)**: Interactive scaling, corner/edge handles with proportional Shift and centre Alt modifiers, and rotation with 15° snapping.
-* **Fills and Strokes**: Paint Bucket (`K`) with smart gap closure detection, Ink Bottle (`S`), solid colors, linear/radial gradients, and stroke styling.
-* **Arrangement & Alignment**: Align left/center/right/top/middle/bottom (with stage alignment support), distribute, rotate 90° CW/CCW, and horizontal/vertical flipping.
+### Stage and drawing tools
+* **Selection & Subselection**: select, move, nudge with arrow keys, anchor and Bézier handle editing on paths (`Subselection (A)`), add and delete points.
+* **Vector drawing**: Pen (`P`) with smooth handles and corner conversion, Pencil (`Shift+Y`) with Schneider curve fitting and smoothing, Rectangle (with corner radii), Oval, PolyStar, Line and Text (`T`).
+* **Free Transform (`Q`)**: interactive scaling, corner/edge handles with proportional Shift and centre Alt modifiers, and rotation with 15° snapping.
+* **Fills and strokes**: Paint Bucket (`K`) with gap closing, Ink Bottle (`S`), solid colours, linear/radial gradients, bitmap fills and stroke styling.
+* **Arrangement & alignment**: align left/center/right/top/middle/bottom (with stage alignment), distribute, rotate 90° CW/CCW, and horizontal/vertical flipping.
-### Timeline & Animation
-* **Layers & Organization**: Normal layers, guide layers, and mask layers (stencil grouping where masked layers clip cleanly under the mask).
-* **Frame Management**: Keyframes (`F6`), blank keyframes (`F7`), frame insertion (`F5`), frame span dragging, multi-frame selection across layers, and cut/copy/paste frames.
-* **Classic & Shape Tweens**: Classic tweens with 8 easing presets and custom ease curves; shape tweens morphing between arbitrary vector contours.
-* **Onion Skinning**: Visual range before and after the playhead for precise in-betweening.
-* **Symbols & Instances**: Graphic symbols with nested timelines, independent loop modes (Loop, Play Once, Single Frame), and first-frame offsets.
+### Timeline and animation
+* **Layers & organization**: normal, guide, motion-guide and mask layers, and nestable layer folders.
+* **Frame management**: keyframes (`F6`), blank keyframes (`F7`), frame insertion (`F5`), span dragging, multi-frame selection across layers, and cut/copy/paste frames.
+* **Classic & shape tweens**: classic tweens with 8 easing presets and custom ease curves; shape tweens morphing between arbitrary vector contours.
+* **Onion skinning**: a visual range before and after the playhead for in-betweening.
+* **Symbols & instances**: graphic symbols with nested timelines and loop modes (Loop, Play Once, Single Frame), movie clips, filters and blend modes, and scenes.
-### Workflow & Customization
-* **Shortcut Editor (`F1`)**: Interactive keymap editor to customize, rebind, or clear any tool or command shortcut.
-* **Command Palette (`Ctrl+K`)**: Quick fuzzy search and execution of all engine commands.
-* **Safety & Recovery**: Tiered confirmation for destructive actions, unsaved changes guards, and non-overwriting untitled imports.
+### Workflow and customization
+* **Shortcut editor (`F1`)**: interactive keymap editor to customize, rebind or clear any tool or command shortcut.
+* **Command palette (`Ctrl+K`)**: quick fuzzy search and execution of all engine commands.
+* **Safety & recovery**: tiered confirmation for destructive actions, unsaved-changes guards, and non-overwriting untitled imports.
-## Build and run
+## Quick start
```sh
-cargo build # whole workspace
-cargo run # desktop app with the sample animation
-cargo run -- --screenshot shots/now.png # draw ~120 frames, save the window, exit
-cargo test # all crates
+git clone https://github.com/storytold/anicraft
+cd anicraft
+
+cargo run --release # desktop app with the sample animation
+cargo run --release -- --screenshot shots/now.png # draw ~120 frames, save the window, exit
+cargo run --release -p anicraft-cli -- info --sample
+cargo run --release -p anicraft-cli -- render --sample --frame 12 --out frame12.png
+cargo run --release -p anicraft-cli -- render-seq --sample --out-dir frames --scale 0.5
+cargo run --release -p anicraft-cli -- gif --sample --out animation.gif
+cargo run --release -p anicraft-cli -- commands # the command registry as JSON
+cargo run --release -p anicraft-cli -- exec --sample draw.rect '{"x":10,"y":10,"w":80,"h":40}' --save out.anicraft
+cargo run --release -p anicraft-cli -- serve --sample # JSON-lines on stdin/stdout
+cargo test # all crates
```
-## Headless / agents
+The interface typefaces (Inter and JetBrains Mono) come from [storytold/craft-fonts](https://github.com/storytold/craft-fonts),
+an optional build input: `CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo run --release` (an absolute path). Without it, AniCraft
+uses egui's built-in fonts. See [`docs/development.md`](docs/development.md).
-AniCraft is headless first: every action in the UI is an engine command, accessible through the CLI or over JSON-lines.
+The `serve` protocol takes one JSON request per line, `{"id": 1, "cmd": "timeline.insert_keyframe", "params": {"frame": 10}}`,
+and answers with its status, `{"id": 1, "ok": true, "result": {}, "revision": 7, "frame": 0}`. Send `{"cmd": "quit"}` to exit.
+
+### Use it from Claude Code and other agents
+
+Register the MCP server with Claude Code:
```sh
-cargo run -p anicraft-cli -- info --sample
-cargo run -p anicraft-cli -- render --sample --frame 12 --out frame12.png
-cargo run -p anicraft-cli -- render-seq --sample --out-dir frames --scale 0.5
-cargo run -p anicraft-cli -- gif --sample --out animation.gif --fps 24
-cargo run -p anicraft-cli -- commands # the registry as JSON
-cargo run -p anicraft-cli -- exec --sample draw.rect '{"x":10,"y":10,"w":80,"h":40}' --save out.anicraft
-cargo run -p anicraft-cli -- serve --sample # JSON-lines on stdin/stdout
-cargo run -p anicraft-cli -- mcp --sample # MCP server for AI assistants (docs/mcp.md)
+claude mcp add anicraft -- /path/to/anicraft-cli mcp
```
-The `serve` protocol accepts one JSON request per line:
-```json
-{"id": 1, "cmd": "timeline.insert_keyframe", "params": {"frame": 10}}
-```
-And returns structured status:
-```json
-{"id": 1, "ok": true, "result": {}, "revision": 7, "frame": 0}
-```
-Send `{"cmd": "quit"}` to exit.
+The details, including the server entry for other MCP clients, are in [`docs/mcp.md`](docs/mcp.md).
-## Architecture
+## Status
-The codebase enforces strict downward-only layering:
+> [!IMPORTANT]
+> **Early alpha: not yet for production animation work.** The core document model, vector renderer,
+> egui shell, classic and shape tweens, and the first XFL and SVG imports work; much is still to come.
+
+[**docs/roadmap.md**](docs/roadmap.md) has the honest status by dimension, milestones M0–M8 and what's next.
+
+**What's missing:** motion tweens and the Motion Editor, shape hints, audio layers, ActionScript (frame scripts are counted
+on import but not kept yet, ADR 0013), motion tweens from XFL, a GPU renderer, and macOS and Linux CI runners
+(AniCraft is verified on Windows so far).
+
+**Workspace:** strict downward-only layering, checked by `cargo test`:
```text
crates/geom L0 Vec2, Affine (decompose/compose), Rect, Path, flattening, hit testing
@@ -165,28 +209,19 @@ crates/cli L4 anicraft-cli: info/render/render-seq/commands/exec/run/new/s
src/ L5 egui shell (app, menus, stage, timeline, panels, theme)
```
-No code below `src/` depends on egui, eframe, or windowing libraries.
+No code below `src/` depends on egui, eframe or windowing libraries.
-### Documents
-* [`docs/requirements.md`](docs/requirements.md): Scope, functional requirements, and technology choices
-* [`docs/architecture.md`](docs/architecture.md): Philosophy, crate map, document model, renderer, and engine
-* [`docs/roadmap.md`](docs/roadmap.md): Milestones M0–M8 and current progress
-* [`docs/product-principles.md`](docs/product-principles.md): Design and user experience principles
-* [`docs/development.md`](docs/development.md): Development setup, testing, and build hygiene
-* [`AGENTS.md`](AGENTS.md): Guide for contributors and AI agents
-
-## Status
-
-> [!IMPORTANT]
-> **Status: Early Alpha (Not yet for public consumption).**
-> AniCraft is under active early development. The core document model, vector rendering oracle,
-> egui shell, classic and shape tweens, and initial XFL/SVG imports are functional, but it is not yet
-> ready for production animation work. See [`docs/roadmap.md`](docs/roadmap.md) for milestones M0–M8
-> and honest progress.
+Agent and contributor rules (clean room, the asset policy, no panics in shipped code) are in [`AGENTS.md`](AGENTS.md).
+[`docs/requirements.md`](docs/requirements.md) has the scope, [`docs/architecture.md`](docs/architecture.md) the design,
+[`docs/product-principles.md`](docs/product-principles.md) the design and user experience principles, and
+[`docs/development.md`](docs/development.md) the setup, testing and build hygiene. Every bundled asset is listed
+with its licence in [`ATTRIBUTION.md`](ATTRIBUTION.md).
## Downloads
-On GitHub, the [latest release](https://github.com/storytold/anicraft/releases/latest) has every build listed below, and [all releases](https://github.com/storytold/anicraft/releases) has earlier versions and their notes. `` in the file names is the version number, and `SHA256SUMS.txt` lists a checksum for every file.
+**New to AniCraft?** Download it from the [AniCraft page on getartcraft.com](https://getartcraft.com/apps/anicraft). That's the easiest way to install it.
+
+**Want a specific build or format?** On GitHub, the [latest release](https://github.com/storytold/anicraft/releases/latest) has every build listed below, and [all releases](https://github.com/storytold/anicraft/releases) has earlier versions and their notes. `` in the file names is the version number, and `SHA256SUMS.txt` lists a checksum for every file.
### Windows
@@ -244,8 +279,16 @@ stand on its own.
| | **PdfCraft** | Reading, organizing and protecting PDFs | [GitHub](https://github.com/storytold/pdfcraft) | [Website](https://getartcraft.com/apps/pdfcraft) |
| | **EffectCraft** | Motion graphics and visual effects | [GitHub](https://github.com/storytold/effectcraft) | [Website](https://getartcraft.com/apps/effectcraft) |
| | **DesignCraft** | Page layout and publishing | [GitHub](https://github.com/storytold/designcraft) | [Website](https://getartcraft.com/apps/designcraft) |
-| | **CADCraft** | Computer-aided design and drafting | [GitHub](https://github.com/storytold/cadcraft) | [Website](https://getartcraft.com/apps/cadcraft) |
-| | **AniCraft** | **2D vector animation studio · you are here** | [GitHub](https://github.com/storytold/anicraft) | [Website](https://getartcraft.com/apps/anicraft) |
+| | **FigCraft** | Interface design and prototyping | [GitHub](https://github.com/storytold/figcraft) | [Website](https://getartcraft.com/apps/figcraft) |
+| | **WordCraft** | Word processing and documents | [GitHub](https://github.com/storytold/wordcraft) | [Website](https://getartcraft.com/apps/wordcraft) |
+| | **SoundCraft** | Audio recording and editing | [GitHub](https://github.com/storytold/soundcraft) | [Website](https://getartcraft.com/apps/soundcraft) |
+| | **DeckCraft** | Presentations and slide decks | [GitHub](https://github.com/storytold/deckcraft) | [Website](https://getartcraft.com/apps/deckcraft) |
+| | **CADCraft** | Computer-aided design | [GitHub](https://github.com/storytold/cadcraft) | [Website](https://getartcraft.com/apps/cadcraft) |
+| | **GridCraft** | Spreadsheets and data | [GitHub](https://github.com/storytold/gridcraft) | [Website](https://getartcraft.com/apps/gridcraft) |
+| | **TextureCraft** | 3D texture painting | [GitHub](https://github.com/storytold/texturecraft) | [Website](https://getartcraft.com/apps/texturecraft) |
+| | **Craft Anything** | See how any software works, then build your own | [GitHub](https://github.com/storytold/craft-anything) | [Website](https://getartcraft.com/apps/craft-anything) |
+| | **AniCraft** | **2D vector animation · you are here** | [GitHub](https://github.com/storytold/anicraft) | [Website](https://getartcraft.com/apps/anicraft) |
+| | **SolidCraft** | Parametric 3D CAD by Tangency Labs (community app) | [GitHub](https://github.com/tangency-labs/solidcraft) | |
And [**ArtCraft**](https://getartcraft.com/) itself, our AI image and video studio for artists who want real control.
@@ -271,7 +314,9 @@ And [**ArtCraft**](https://getartcraft.com/) itself, our AI image and video stud
AniCraft
----
+## Star history
+
+[](https://www.star-history.com/?repos=storytold%2Fanicraft&type=date&legend=top-left)
## License and credits
@@ -281,6 +326,9 @@ Copyright (c) 2026 ArtCraft Team and the AniCraft contributors. Required notices
Bundled fonts, icons, images and other assets keep their own open licenses; each one is listed
with its author, source and license in [ATTRIBUTION.md](ATTRIBUTION.md).
+The app icon (an engraved rabbit on AniCraft yellow, `#dac604`) is the owner's original artwork; its
+palette and files are in [`assets/app-icon/`](assets/app-icon/README.md).
+
The ArtCraft name, wordmark and logos in [`docs/brand/`](docs/brand/) are trademarks of the
ArtCraft Team and are not covered by this license. They may be used only unmodified, and only as
part of this repository and AniCraft, under [`docs/brand/LICENSE-brand.txt`](docs/brand/LICENSE-brand.txt).
diff --git a/assets/app-icon/LICENSE.txt b/assets/app-icon/LICENSE.txt
new file mode 100644
index 00000000..7d1882a9
--- /dev/null
+++ b/assets/app-icon/LICENSE.txt
@@ -0,0 +1,12 @@
+AniCraft app icon (anicraft.svg, anicraft-small.svg and every file derived from them in this
+directory: anicraft-1024.png, anicraft-padded-1024.png, anicraft-macos-512.png, anicraft.ico, hicolor/).
+
+Original artwork made for this project by the project owner, drawn in ArtCraft and vectorised for
+AniCraft (no third-party material). Licensed like the rest of AniCraft, under either of
+
+ * Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
+ * MIT license (https://opensource.org/licenses/MIT)
+
+at your option.
+
+Regenerate the derived files with scripts/icons.sh.
diff --git a/assets/app-icon/README.md b/assets/app-icon/README.md
new file mode 100644
index 00000000..51300a45
--- /dev/null
+++ b/assets/app-icon/README.md
@@ -0,0 +1,52 @@
+# AniCraft app icon
+
+**Creature:** an engraved rabbit, AniCraft's mascot.
+
+**Style:** an engraving-style portrait in the Crafting Apps template: a head-and-shoulders portrait on a
+full-bleed field, no frame or roundel, with the body running off the tile.
+
+**Palette** (exactly three colours):
+
+| Colour | Hex | Used for |
+|---|---|---|
+| Ink | `#0b0b0c` | line work and contour |
+| Paper | `#f2f1ee` | the figure (a neutral white, so the rabbit doesn't read as cream on the yellow) |
+| AniCraft colour | `#dac604` | the full-bleed field |
+
+**Tile:** `viewBox="0 0 512 512"`, a rounded square with `rx=112`, clipped, the same tile as every
+Crafting App. The padded files add Apple's transparent margin (tile = 824/1024 of the canvas); Windows
+and Linux use the tile edge to edge.
+
+**Provenance:** the owner's original ArtCraft drawing, vectorised with `trace.py`. `anicraft.svg` is the
+canonical artwork. Licence: see `LICENSE.txt`.
+
+## Files
+
+| File | What | Used by |
+|---|---|---|
+| `anicraft.svg` | master vector (traced at 1600 px, about 275 KB) | source for everything below |
+| `anicraft-small.svg` | lighter vector (traced at 1000 px, about 170 KB) | `hicolor/scalable` |
+| `anicraft-1024.png` | full tile, 1024 px | docs, store listings |
+| `anicraft-padded-1024.png` | tile with Apple's margin, 1024 px | landing pages, store listings |
+| `anicraft-macos-512.png` | tile with Apple's margin, 512 px | runtime Dock icon on macOS (`src/main.rs`) |
+| `anicraft.ico` | Windows icon, 16 to 256 px | `build.rs` (embedded in `anicraft.exe`) |
+| `hicolor//apps/ai.storyteller.anicraft.png` | Linux theme icons, 16 to 512 px; the 256 one is also the runtime icon on Windows and Linux, the 128 one the mark in Help › About (`src/app.rs`) | Linux packaging, the Crafting Apps tables |
+| `hicolor/scalable/apps/ai.storyteller.anicraft.svg` | Linux scalable icon | as above |
+| `trace.py` | traces the 2000 px source drawing into the master SVG | regenerating the vectors |
+
+## How it reaches each OS
+
+- **macOS:** the app sets the Dock / app-switcher icon at runtime (`ViewportBuilder::with_icon`).
+- **Windows:** `build.rs` embeds `anicraft.ico` with `winresource` (taskbar, Start menu, Explorer,
+ Alt-Tab); the runtime icon covers the title bar.
+- **Linux:** the runtime icon covers the window; install `hicolor/` to `share/icons/` for launchers.
+
+## Regenerate
+
+```sh
+# From the 2000 px source drawing (needs numpy, Pillow, SciPy and vtracer; svgo 3.3.2 shrinks the paths):
+python trace.py rabbit.webp master.svg 1600 4 1960 && npx svgo@3.3.2 -p 1 master.svg -o anicraft.svg
+python trace.py rabbit.webp small.svg 1000 4 1960 && npx svgo@3.3.2 -p 1 small.svg -o anicraft-small.svg
+# Every render (needs resvg on PATH and Python with Pillow):
+scripts/icons.sh
+```
diff --git a/assets/app-icon/anicraft-1024.png b/assets/app-icon/anicraft-1024.png
new file mode 100644
index 0000000000000000000000000000000000000000..2a2c623e2b1654bbf83fbb8fb2207de332a8c61a
GIT binary patch
literal 346598
zcmX_nbzD^K^Y+rIbW1BB9SS0`fPji1ARW@7gn%fuz|tWl5`x5vJcLMhFWs;xBFz%Q
zqBID*u=O6F=lgsA-~*ps&N=rzGiTIzdruDQ3;blsoV0bcQ2bhRL06
zrdNBZ^IoAXwVdu26zV=$nNh&sWB$~^BFj7?N6F)uy>|Uw56u9}3f(--9bHnAt5*|l
zs4OS-ek>^^l>P1s+3i3oH!ZhgPl*-`mk@
zC6tO$2x(gvG>rcPG_bZ2)$o}swoU_M1?4z=7FCnBHYT+k`
zH@8j@Wm%>8{iSW<2}+Z?2o#ZHt9ooSH@X$J-bIZ&A$*f7GQCiFuton55IY1bvtVC-5uR|&6Xlqa5+ikye{D=H7?(Jq
zag_IzivNL#&FsIPC>D0w%D1Ge6j)-8!NW--~I;fXaFD403SUJI132-YH{;U-ZeTx5|P4r2}N_^s~eJAV6
z_JXe`JWM17WxSo3ueoM!PVoQVE2X8ccp#J2C(cFrSe+G=qiy;KkA6YRO!&{L33>t_
zzuel_YNFKV1HL79>4Orxv&7H-3nd`3Z7<#CGCzM|rOv^Kfn+1okN)?~trSuc7Cs7)
zh`|59RkN{xL*FM*5BbKgc+|uKcHE-dPC8!Ve+JQ_k9=~|R(bzpe|7K@)-L2`0!<_-
zh$ZG}*He4(eVLk?&|?3n|Msu-D(Yp>XVsF%Kdl!Kf
zX=QL>_^RXimiPS={bT>xukqe2s?gIPYUsLc&oAqL5WRbPO3E-NDDOg_rs7dSeacPFB4ViM0Jye*?zi
zC{j>y&kO@1w*l2;aX>GB!QwQ)RdJM-s|E?Me0i+1ehMpODeWXc9Fc|Y{{@TKPeOGx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