Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

D: compound paths, Create Outlines, Scissors tool

Brandon Thomasea1a0b16c724
diff --git a/ROADMAP.md b/ROADMAP.md
index 96cac4bd6..bd8bde621 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -30,6 +30,7 @@ DesignCraft aims at full Adobe InDesign parity — and to be better: faster, ope
- Edit › Paste Into (copied objects become a frame's content, clipped by it; rendered, PDF and IDML both ways — verified in InDesign 2026); Polygon Settings (sides, star inset; double-click the Polygon tool).
- Color panel (fill/stroke proxy, CMYK/RGB/Lab sliders with channel ramps, tint slider for swatches, spectrum ramp, Add to Swatches) and Color Picker (double-click the proxy); mixed colours are unnamed (not listed in Swatches until added); `object.color`, `swatch.addToSwatches`, `swatch.addUnnamed`.
- Place text files: Word (.docx: styles by name with their attributes, bold/italic/underline/size/font, footnotes, tables, tabs, breaks), RTF and plain text, into the insertion point, the selected frame or a new frame; autoflow adds pages and threaded frames until the text fits; Remove Styles option (`designcraft-textimport`).
+- Make / Release Compound Path (⌘8; nested paths become holes), Create Outlines (⇧⌘O; one path per text colour), Scissors tool (C) with `path.split`.
- Transform Again / Individually / Sequence Again (⌥⌘3; a moved copy repeats like Step and Repeat), Clear Transformations; Layers: Merge, Delete Unused, Hide/Lock Others, Show/Unlock All; Break Link to Style (paragraph and character).
- Floating panels: tear a panel off the dock (its float button, or drag its header away) into a movable, resizable window; Dock puts it back; positions persist; `window.floatPanel` / `window.dockPanel`.
- Place SVG (vector in PDF export via krilla-svg, resvg on screen, text in the bundled fonts), Photoshop (.psd composite), BMP, and Illustrator files saved with PDF compatibility (.ai). New `designcraft-images` crate (L2) for sniffing, sizes and decoding. EPS is still missing.
diff --git a/crates/engine/src/cmd/mod.rs b/crates/engine/src/cmd/mod.rs
index 603218b33..524a1e520 100644
--- a/crates/engine/src/cmd/mod.rs
+++ b/crates/engine/src/cmd/mod.rs
@@ -18,6 +18,7 @@ mod links;
mod notes;
mod object;
mod overrides;
+mod paths;
mod place_text;
pub mod preflight;
mod prefs;
@@ -126,6 +127,7 @@ pub fn command_specs() -> &'static [CommandSpec] {
v.extend(edit::specs());
v.extend(object::specs());
v.extend(anchors::specs());
+ v.extend(paths::specs());
v.extend(text::specs());
v.extend(style::specs());
v.extend(table::specs());
diff --git a/crates/engine/src/cmd/paths.rs b/crates/engine/src/cmd/paths.rs
new file mode 100644
index 000000000..bab319527
--- /dev/null
+++ b/crates/engine/src/cmd/paths.rs
@@ -0,0 +1,343 @@
+//! Path operations from the Object and Type menus: Make / Release Compound Path, Create Outlines,
+//! and the Scissors tool's split.
+
+use std::sync::Arc;
+
+use designcraft_doc::{Content, Document, Fill, Item, ItemId, Selection, Shape, SpreadRef, Stroke};
+use designcraft_geom::{Affine, BezPath, PathData, SubPath};
+use serde_json::{Value, json};
+
+use super::{CommandSpec, bad, cmd, has_selection, point_param, targets};
+use crate::{Result, Session};
+
+pub fn specs() -> Vec<CommandSpec> {
+ vec![
+ cmd!(
+ "object.makeCompoundPath",
+ "Make Compound Path",
+ ["Object", "Paths"],
+ Some("Cmd+8"),
+ "{ids?} — one path from the selected paths (the backmost object's look); paths inside others become holes → {id}",
+ has_selection,
+ make_compound
+ ),
+ cmd!(
+ "object.releaseCompoundPath",
+ "Release Compound Path",
+ ["Object", "Paths"],
+ Some("Cmd+Alt+Shift+8"),
+ "{ids?} — each subpath becomes its own object → {ids}",
+ has_selection,
+ release_compound
+ ),
+ cmd!(
+ "type.createOutlines",
+ "Create Outlines",
+ ["Type"],
+ Some("Cmd+Shift+O"),
+ "{ids?} — text frames become compound paths of their glyphs (one per text colour, grouped when several) → {ids}",
+ has_selection,
+ create_outlines
+ ),
+ cmd!(
+ "path.split",
+ "Split Path",
+ [],
+ None,
+ "{id, at: [x,y] (spread coords; the nearest point on the path)} — Scissors: an open path becomes two, a closed one opens there → {ids}",
+ has_selection,
+ split_path
+ ),
+ ]
+}
+
+/// Item → spread transform.
+fn spread_xf(d: &Document, id: ItemId) -> Option<(SpreadRef, Affine)> {
+ let loc = d.find(id)?;
+ Some((loc.spread, d.parent_xf(&loc) * d.item_at(&loc)?.xf))
+}
+
+/// Orient subpaths so those nested an odd number of times run against the others: with the
+/// non-zero rule they become holes.
+fn orient_holes(path: &mut PathData) {
+ let beziers: Vec<BezPath> = path.subpaths.iter().map(|s| PathData::single(s.clone()).to_bezpath()).collect();
+ let n = path.subpaths.len();
+ for i in 0..n {
+ let Some(p) = path.subpaths[i].anchors.first().map(|a| a.p) else { continue };
+ let depth = (0..n).filter(|&j| j != i && designcraft_geom::hit::fill_contains(&beziers[j], designcraft_geom::FillRule::NonZero, p)).count();
+ let sp = &mut path.subpaths[i];
+ let cw = sp.area() > 0.0;
+ if cw == (depth % 2 == 1) {
+ sp.reverse();
+ }
+ }
+}
+
+fn make_compound(s: &mut Session, p: &Value) -> Result<Value> {
+ let ids = targets(s, p)?;
+ if ids.len() < 2 {
+ return Err(bad("object.makeCompoundPath", "select two or more paths"));
+ }
+ s.edit(|d, sel| {
+ // Back to front within the spread.
+ let (sr, _) = spread_xf(d, ids[0]).ok_or(designcraft_doc::DocError::NoItem(ids[0]))?;
+ let order: Vec<ItemId> = d.spread(sr).map(|sp| sp.items.iter().map(|i| i.id).filter(|i| ids.contains(i)).collect()).unwrap_or_default();
+ let base_id = *order.first().ok_or_else(|| bad("object.makeCompoundPath", "the paths must be on one spread"))?;
+ let (_, base_xf) = spread_xf(d, base_id).ok_or(designcraft_doc::DocError::NoItem(base_id))?;
+ let to_base = base_xf.inverse();
+ let mut subpaths: Vec<SubPath> = d.item(base_id).map(|i| i.path.subpaths.clone()).unwrap_or_default();
+ for id in order.iter().skip(1) {
+ let Some((_, xf)) = spread_xf(d, *id) else { continue };
+ let Some(it) = d.item(*id) else { continue };
+ if matches!(it.content, Content::Group { .. }) {
+ continue;
+ }
+ subpaths.extend(it.path.transformed(to_base * xf).subpaths);
+ d.remove_item(*id)?;
+ }
+ let it = d.item_mut(base_id).ok_or(designcraft_doc::DocError::NoItem(base_id))?;
+ it.path = PathData::new(subpaths);
+ orient_holes(&mut it.path);
+ it.shape = Shape::Path;
+ *sel = Selection::items(vec![base_id]);
+ Ok(json!({"id": base_id.0}))
+ })
+}
+
+fn release_compound(s: &mut Session, p: &Value) -> Result<Value> {
+ let ids = targets(s, p)?;
+ s.edit(|d, sel| {
+ let mut out = Vec::new();
+ for id in &ids {
+ let Some(it) = d.item(*id).cloned() else { continue };
+ if it.path.subpaths.len() < 2 || matches!(it.content, Content::Group { .. }) {
+ out.push(*id);
+ continue;
+ }
+ let (sr, _) = spread_xf(d, *id).ok_or(designcraft_doc::DocError::NoItem(*id))?;
+ let at = d.spread(sr).and_then(|sp| sp.items.iter().position(|i| i.id == *id));
+ for (k, sp) in it.path.subpaths.iter().enumerate() {
+ let mut part = it.clone();
+ part.path = PathData::single(sp.clone());
+ if k == 0 {
+ if let Some(x) = d.item_mut(*id) {
+ x.path = part.path;
+ }
+ out.push(*id);
+ continue;
+ }
+ part.id = ItemId(d.alloc());
+ part.content = Content::Unassigned;
+ out.push(part.id);
+ d.insert_item(sr, part, at.map(|a| a + k))?;
+ }
+ }
+ *sel = Selection::items(out.clone());
+ Ok(json!({"ids": out.iter().map(|i| i.0).collect::<Vec<_>>()}))
+ })
+}
+
+fn create_outlines(s: &mut Session, p: &Value) -> Result<Value> {
+ let ids = targets(s, p)?;
+ s.edit(|d, sel| {
+ let db = designcraft_fonts::FontDb::global();
+ let mut out = Vec::new();
+ for id in &ids {
+ let Some(it) = d.item(*id).cloned() else { continue };
+ let Content::Text(tf) = &it.content else {
+ out.push(*id);
+ continue;
+ };
+ let cs = designcraft_compose::compose_story(d, tf.story, &Default::default());
+ let Some(ft) = cs.frame(*id) else { continue };
+ // One path per text look (fill, stroke).
+ let mut runs: Vec<((String, f32, String, f32, f64), BezPath)> = Vec::new();
+ for l in &ft.lines {
+ for g in l.glyphs.iter().filter(|g| g.visible) {
+ let st = &cs.styles[g.style as usize];
+ let outline = db.outline(&g.face, g.gid);
+ if outline.elements().is_empty() {
+ continue;
+ }
+ let skew = if st.skew != 0.0 { Affine::new([1.0, 0.0, -st.skew.to_radians().tan(), 1.0, 0.0, 0.0]) } else { Affine::IDENTITY };
+ let a = Affine::translate((g.x, l.baseline + g.y)) * skew * Affine::scale_non_uniform(g.sx, g.sy);
+ let key = (st.fill.clone(), st.fill_tint, st.stroke.clone(), st.stroke_tint, st.stroke_weight);
+ let bp = match runs.iter_mut().find(|r| r.0 == key) {
+ Some(r) => &mut r.1,
+ None => {
+ runs.push((key, BezPath::new()));
+ &mut runs.last_mut().expect("pushed").1
+ }
+ };
+ bp.extend((a * outline.as_ref().clone()).elements().iter().copied());
+ }
+ }
+ if runs.is_empty() {
+ continue;
+ }
+ let (sr, _) = spread_xf(d, *id).ok_or(designcraft_doc::DocError::NoItem(*id))?;
+ let at = d.spread(sr).and_then(|sp| sp.items.iter().position(|i| i.id == *id));
+ let make = |d: &mut Document, ((fill, ft, stroke, stt, sw), bp): ((String, f32, String, f32, f64), BezPath)| {
+ let mut o = Item::new(ItemId(d.alloc()), it.layer, Shape::Path, PathData::from_bezpath(&bp));
+ o.xf = it.xf;
+ o.fill = Fill { swatch: fill, tint: ft, ..Fill::none() };
+ o.stroke = if stroke == designcraft_color::swatch::NONE {
+ Stroke::none()
+ } else {
+ Stroke { swatch: stroke, tint: stt, weight: sw, ..Stroke::default() }
+ };
+ o
+ };
+ let mut parts: Vec<Item> = runs.into_iter().map(|r| make(d, r)).collect();
+ d.remove_item(*id)?;
+ let new = if parts.len() == 1 {
+ parts.pop().expect("one")
+ } else {
+ let mut g = Item::new(ItemId(d.alloc()), it.layer, Shape::Group, PathData::default());
+ for p in &mut parts {
+ p.xf = Affine::IDENTITY;
+ }
+ g.xf = it.xf;
+ g.content = Content::Group { items: parts.into_iter().map(Arc::new).collect() };
+ g
+ };
+ out.push(new.id);
+ d.insert_item(sr, new, at)?;
+ }
+ *sel = Selection::items(out.clone());
+ Ok(json!({"ids": out.iter().map(|i| i.0).collect::<Vec<_>>()}))
+ })
+}
+
+fn split_path(s: &mut Session, p: &Value) -> Result<Value> {
+ let id = super::id_param(p, "id").ok_or_else(|| bad("path.split", "missing id"))?;
+ let at = point_param(p, "at").ok_or_else(|| bad("path.split", "missing at"))?;
+ s.edit(|d, sel| {
+ let (sr, xf) = spread_xf(d, id).ok_or(designcraft_doc::DocError::NoItem(id))?;
+ let it = d.item(id).cloned().ok_or(designcraft_doc::DocError::NoItem(id))?;
+ if !matches!(it.content, Content::Unassigned) {
+ return Err(bad("path.split", "only empty paths and frames can be cut"));
+ }
+ let (si, seg, t, _, _) = it.path.nearest(xf.inverse() * at).ok_or_else(|| bad("path.split", "the object has no path"))?;
+ let mut sp = it.path.subpaths[si].clone();
+ // Insert an anchor at the cut unless it's (nearly) on one.
+ let ai = if t < 1e-3 {
+ seg
+ } else if t > 1.0 - 1e-3 {
+ (seg + 1) % sp.anchors.len()
+ } else {
+ sp.insert_anchor(seg, t)
+ };
+ let n = sp.anchors.len();
+ let mut pieces: Vec<SubPath> = Vec::new();
+ if sp.closed {
+ // Open at the cut: it becomes both ends.
+ let mut a: Vec<_> = sp.anchors[ai..].iter().chain(sp.anchors[..ai].iter()).copied().collect();
+ a.push(sp.anchors[ai]);
+ if let Some(f) = a.first_mut() {
+ f.h_in = f.p;
+ }
+ if let Some(l) = a.last_mut() {
+ l.h_out = l.p;
+ }
+ pieces.push(SubPath::new(a, false));
+ } else {
+ if ai == 0 || ai >= n - 1 {
+ return Err(bad("path.split", "that's an end point"));
+ }
+ let (mut a, mut b) = (sp.anchors[..=ai].to_vec(), sp.anchors[ai..].to_vec());
+ if let Some(l) = a.last_mut() {
+ l.h_out = l.p;
+ }
+ if let Some(f) = b.first_mut() {
+ f.h_in = f.p;
+ }
+ pieces.push(SubPath::new(a, false));
+ pieces.push(SubPath::new(b, false));
+ }
+ sp.anchors.clear();
+ let mut ids = vec![id];
+ let first = pieces.remove(0);
+ let it_m = d.item_mut(id).ok_or(designcraft_doc::DocError::NoItem(id))?;
+ it_m.path.subpaths[si] = first;
+ it_m.shape = if it_m.shape == Shape::GraphicLine { Shape::GraphicLine } else { Shape::Path };
+ for piece in pieces {
+ let mut other = it.clone();
+ other.id = ItemId(d.alloc());
+ other.path = PathData::single(piece);
+ other.shape = Shape::Path;
+ ids.push(other.id);
+ d.insert_item(sr, other, None)?;
+ }
+ *sel = Selection::items(ids.clone());
+ Ok(json!({"ids": ids.iter().map(|i| i.0).collect::<Vec<_>>()}))
+ })
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn compound_paths_make_holes_and_release() {
+ let mut s = Session::new();
+ s.execute("file.new", &json!({})).unwrap();
+ let a = s.execute("frame.create", &json!({"rect": [100, 100, 300, 300]})).unwrap()["id"].as_u64().unwrap();
+ let b = s.execute("frame.create", &json!({"rect": [150, 150, 250, 250]})).unwrap()["id"].as_u64().unwrap();
+ s.execute("object.fill", &json!({"ids": [a], "swatch": "[Black]"})).unwrap();
+ let r = s.execute("object.makeCompoundPath", &json!({"ids": [a, b]})).unwrap();
+ assert_eq!(r["id"], a);
+ let d = s.doc().unwrap().doc.clone();
+ assert!(d.item(ItemId(b)).is_none());
+ let it = d.item(ItemId(a)).unwrap();
+ assert_eq!(it.path.subpaths.len(), 2);
+ // The inner square is a hole: the centre stays white, the ring is black.
+ let mut rr = designcraft_render::Renderer::new();
+ rr.threads = 0;
+ let img = rr.render_page(&d, &s.cache, 0, 1.0, false, &Default::default()).unwrap();
+ assert!(img.pixel(200, 200)[0] > 200, "hole: {:?}", img.pixel(200, 200));
+ assert!(img.pixel(120, 200)[0] < 60, "ring: {:?}", img.pixel(120, 200));
+ let r = s.execute("object.releaseCompoundPath", &json!({})).unwrap();
+ assert_eq!(r["ids"].as_array().unwrap().len(), 2);
+ s.doc().unwrap().doc.check().unwrap();
+ }
+
+ #[test]
+ fn create_outlines_turns_text_into_paths() {
+ let mut s = Session::new();
+ s.execute("file.new", &json!({})).unwrap();
+ let r = s.execute("frame.create", &json!({"rect": [72, 72, 400, 200], "content": "text", "text": "Outline"})).unwrap();
+ let id = r["id"].as_u64().unwrap();
+ s.execute("selection.set", &json!({"ids": [id]})).unwrap();
+ let r = s.execute("type.createOutlines", &json!({})).unwrap();
+ let new = ItemId(r["ids"][0].as_u64().unwrap());
+ let d = s.doc().unwrap().doc.clone();
+ assert!(d.item(ItemId(id)).is_none());
+ let it = d.item(new).unwrap();
+ assert_eq!(it.shape, Shape::Path);
+ assert!(it.path.subpaths.len() >= 7, "a contour or more per letter: {}", it.path.subpaths.len());
+ let b = it.bounds();
+ assert!(b.x0 >= 72.0 && b.y0 >= 72.0 && b.x1 < 400.0, "{b:?}");
+ assert!(d.stories.is_empty() || !d.stories.values().any(|st| st.frames.contains(&ItemId(id))));
+ }
+
+ #[test]
+ fn scissors_split_open_and_closed_paths() {
+ let mut s = Session::new();
+ s.execute("file.new", &json!({})).unwrap();
+ let line = s.execute("line.create", &json!({"a": [100, 100], "b": [300, 100]})).unwrap()["id"].as_u64().unwrap();
+ let r = s.execute("path.split", &json!({"id": line, "at": [200, 101]})).unwrap();
+ assert_eq!(r["ids"].as_array().unwrap().len(), 2);
+ let d = s.doc().unwrap().doc.clone();
+ let w: Vec<f64> =
+ r["ids"].as_array().unwrap().iter().map(|i| d.item(ItemId(i.as_u64().unwrap())).unwrap().bounds().width().round()).collect();
+ assert_eq!(w, [100.0, 100.0]);
+ let rect = s.execute("frame.create", &json!({"rect": [100, 200, 200, 300]})).unwrap()["id"].as_u64().unwrap();
+ let r = s.execute("path.split", &json!({"id": rect, "at": [150, 200]})).unwrap();
+ assert_eq!(r["ids"].as_array().unwrap().len(), 1);
+ let d = s.doc().unwrap().doc.clone();
+ let it = d.item(ItemId(rect)).unwrap();
+ assert!(!it.path.is_closed());
+ assert_eq!(it.path.anchor_count(), 6);
+ }
+}
diff --git a/crates/tools/src/anchors.rs b/crates/tools/src/anchors.rs
index 453eed748..bdcf3b273 100644
--- a/crates/tools/src/anchors.rs
+++ b/crates/tools/src/anchors.rs
@@ -11,6 +11,8 @@ use crate::{Action, Cursor, Mods, PointerEvent, PointerKind, Tool, ToolContext};
#[derive(Clone, Copy, PartialEq, Eq)]
pub enum Kind {
Add,
+ /// Scissors: cut the path at the click.
+ Scissors,
Delete,
Convert,
}
@@ -36,6 +38,7 @@ impl Tool for AnchorTool {
fn id(&self) -> &'static str {
match self.kind {
Kind::Add => "addAnchor",
+ Kind::Scissors => "scissors",
Kind::Delete => "deleteAnchor",
Kind::Convert => "convertDirection",
}
@@ -44,7 +47,7 @@ impl Tool for AnchorTool {
fn pointer(&mut self, cx: &ToolContext, ev: &PointerEvent) -> Vec<Action> {
let p = ev.pos;
match (self.kind, ev.kind) {
- (Kind::Add, PointerKind::Down) => {
+ (Kind::Add | Kind::Scissors, PointerKind::Down) => {
let Some((_, sp)) = cx.layout.spread_at(p) else { return vec![] };
// The first target whose outline passes near the pointer.
for id in targets(cx, p) {
@@ -53,7 +56,11 @@ impl Tool for AnchorTool {
let inner = (xf * it.xf).inverse() * p;
let scale = (xf * it.xf).inverse().determinant().abs().sqrt();
if it.path.nearest(inner).is_some_and(|n| n.4 <= cx.tol(5.0) * scale) {
- return vec![Action::Exec("path.addAnchor".into(), json!({"id": id.0, "at": [sp.x, sp.y], "tolerance": cx.tol(5.0)}))];
+ return vec![if self.kind == Kind::Scissors {
+ Action::Exec("path.split".into(), json!({"id": id.0, "at": [sp.x, sp.y]}))
+ } else {
+ Action::Exec("path.addAnchor".into(), json!({"id": id.0, "at": [sp.x, sp.y], "tolerance": cx.tol(5.0)}))
+ }];
}
}
vec![]
@@ -93,7 +100,7 @@ impl Tool for AnchorTool {
}
fn cursor(&self, _cx: &ToolContext, _p: Point, _m: Mods) -> Cursor {
- Cursor::Pen
+ if self.kind == Kind::Scissors { Cursor::Crosshair } else { Cursor::Pen }
}
fn busy(&self) -> bool {
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs
index 8d817a67a..7ef784088 100644
--- a/crates/tools/src/lib.rs
+++ b/crates/tools/src/lib.rs
@@ -263,6 +263,7 @@ pub fn create(id: &str) -> Box<dyn Tool> {
"addAnchor" => Box::new(anchors::AnchorTool::new(anchors::Kind::Add)),
"deleteAnchor" => Box::new(anchors::AnchorTool::new(anchors::Kind::Delete)),
"convertDirection" => Box::new(anchors::AnchorTool::new(anchors::Kind::Convert)),
+ "scissors" => Box::new(anchors::AnchorTool::new(anchors::Kind::Scissors)),
"rotate" => Box::new(xform::XformTool::new("rotate")),
"scale" => Box::new(xform::XformTool::new("scale")),
"shear" => Box::new(xform::XformTool::new("shear")),
diff --git a/crates/tools/src/tests.rs b/crates/tools/src/tests.rs
index 6cac6447f..c693b5812 100644
--- a/crates/tools/src/tests.rs
+++ b/crates/tools/src/tests.rs
@@ -142,3 +142,16 @@ fn anchor_tools_emit_path_commands() {
assert!(matches!(&a[1], Action::Preview(c, p) if c == "path.convertAnchor" && p["to"] == serde_json::json!([120.0, 90.0])));
assert_eq!(conv.pointer(&cx, &ev(PointerKind::Up, at(120.0, 90.0))), vec![Action::Commit]);
}
+
+#[test]
+fn scissors_tool_cuts_where_clicked() {
+ let mut d = Document::new(&NewDocument::default());
+ let lid = d.default_layer();
+ let (fid, _) = d.add_text_frame(SpreadRef::Doc(0), Rect::new(100.0, 100.0, 200.0, 200.0), lid, "", ParaFormat::default()).unwrap();
+ let (s, c, l) = (Selection::items(vec![fid]), Cache::new(), CanvasLayout::new(&d, false));
+ let cx = ctx(&d, &s, &c, &l);
+ let off = l.offset(SpreadRef::Doc(0));
+ let mut t = create("scissors");
+ let a = t.pointer(&cx, &PointerEvent::new(PointerKind::Down, 150.0 + off.x, 100.0 + off.y));
+ assert_eq!(a, vec![Action::Exec("path.split".into(), serde_json::json!({"id": fid.0, "at": [150.0, 100.0]}))]);
+}
diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs
index 44df4dfb7..8f83dd63f 100644
--- a/crates/ui-egui/src/menus.rs
+++ b/crates/ui-egui/src/menus.rs
@@ -165,6 +165,7 @@ pub const MENUS: &[(&str, &[&str])] = &[
&[
"ui:app.findFontDialog",
"-",
+ "cmd:type.createOutlines",
"cmd:type.fillWithPlaceholder",
">Insert Special Character",
">Symbols",
@@ -281,6 +282,10 @@ pub const MENUS: &[(&str, &[&str])] = &[
"cmd:transform.again|Transform Sequence Again|{\"sequence\": true}",
"cmd:transform.again|Transform Sequence Again Individually|{\"sequence\": true, \"individually\": true}",
"<",
+ ">Paths",
+ "cmd:object.makeCompoundPath",
+ "cmd:object.releaseCompoundPath",
+ "<",
">Arrange",
"cmd:object.bringToFront",
"cmd:object.bringForward",
diff --git a/docs/parity.md b/docs/parity.md
index 16bea7936..6b6a44eb5 100644
--- a/docs/parity.md
+++ b/docs/parity.md
@@ -5,12 +5,12 @@ The summary is generated by `cargo xtask parity` from the table at the bottom of
Each row of the InDesign feature catalogue is scored **D** (done), **P** (partial: works but lacks options or UI) or **M** (missing), weighted by priority (**P0** core = 3, **P1** = 2, **P2** = 1). Out-of-scope rows (Adobe cloud services, plug-ins, Typekit, Flash) are excluded.
<!-- SUMMARY -->
-**Weighted breadth parity: 72%** over 275 features.
+**Weighted breadth parity: 73%** over 275 features.
| Priority | Features | Done | Partial | Missing | Parity |
|---|---|---|---|---|---|
| P0 | 102 | 99 | 3 | 0 | 99% |
-| P1 | 97 | 38 | 23 | 36 | 51% |
+| P1 | 97 | 42 | 23 | 32 | 55% |
| P2 | 76 | 8 | 7 | 61 | 15% |
| Area | Parity |
@@ -18,12 +18,12 @@ Each row of the InDesign feature catalogue is scored **D** (done), **P** (partia
| Application shell & workspace | 69% |
| Documents, pages, spreads | 71% |
| Layers | 95% |
-| Frames, shapes & paths | 76% |
+| Frames, shapes & paths | 83% |
| Transform | 93% |
| Fill, stroke, colour | 69% |
| Effects & transparency | 50% |
| Placing & links | 66% |
-| Type & text frames | 77% |
+| Type & text frames | 80% |
| Typography | 79% |
| Styles | 71% |
| Tables | 73% |
@@ -100,13 +100,13 @@ Open P0 items: Preferences, Vector/page formats (PDF/AI/SVG/EPS place), Export t
| Frames, shapes & paths | Line tool | P0 | D |
| Frames, shapes & paths | Pen, add/delete anchor, convert direction | P0 | D |
| Frames, shapes & paths | Pencil, Smooth, Erase | P1 | M |
-| Frames, shapes & paths | Scissors | P1 | M |
+| Frames, shapes & paths | Scissors | P1 | D |
| Frames, shapes & paths | Content type | P0 | D |
| Frames, shapes & paths | Convert Shape | P1 | P |
| Frames, shapes & paths | Corner Options | P0 | D |
| Frames, shapes & paths | Pathfinder | P1 | M |
-| Frames, shapes & paths | Compound paths | P1 | M |
-| Frames, shapes & paths | Text outlines | P1 | M |
+| Frames, shapes & paths | Compound paths | P1 | D |
+| Frames, shapes & paths | Text outlines | P1 | D |
| Frames, shapes & paths | Clipping paths | P2 | M |
| Frames, shapes & paths | Frame fitting | P0 | D |
| Frames, shapes & paths | Frame Fitting Options | P1 | P |
@@ -199,7 +199,7 @@ Open P0 items: Preferences, Vector/page formats (PDF/AI/SVG/EPS place), Export t
| Type & text frames | Text variables | P1 | D |
| Type & text frames | Conditional text | P2 | M |
| Type & text frames | Fill with placeholder text | P1 | D |
-| Type & text frames | Create Outlines | P1 | M |
+| Type & text frames | Create Outlines | P1 | D |
| Type & text frames | Change Case | P0 | D |
| Type & text frames | Show Hidden Characters | P0 | D |
| Type & text frames | Font menu with preview, favourites | P1 | P |