diff --git a/AGENTS.md b/AGENTS.md index 85a9cee8de..bac119a742 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -69,7 +69,7 @@ VectorCraft is an open-source, Rust-native vector illustration app (Illustrator- - `crates/*`: engine, tools, format, svg, pdf, text, theme, mcp and the egui frontend `crates/ui-egui`; `apps/{vectorcraft, vectorcraft-cli, vectorcraft-web}`; `xtask`. `cargo xtask layers` enforces the layering: nothing below L6 depends on egui, eframe, winit or rfd. - Commands live in `crates/engine/src/cmd/*` (id, label, menu path, shortcut, params doc, `enabled`, `run`); UI-only commands in `crates/ui-egui/src/menus.rs` (`UI_COMMANDS`). Colours come from `theme::Tokens`. - Control channel methods: `crates/ui-egui/src/control.rs`. MCP: `docs/mcp.md`. -- `ROADMAP.md` (stage, numbers, progress log), `docs/gaps.md` (ranked work list), `docs/target-app-parity.md`, `docs/roadmap.md` and the parity checklists in `docs/` track progress. Feature PRs update the rows they touch. Headless ([RFC-0052](https://github.com/storytold/craft-contrib/blob/main/rfcs/0052-headless-reach.md)): `docs/ui-parity.md` has a Headless column on the Summary table and every behaviour table; every row is `unknown` until checked (349 unknown today). A checked row may be marked `no ()` or `partial ()` with `window`, `os` or `engine-gap` (a `partial` row's notes say which part works); `yes` only when the row cites a registry command id (LightCraft's `cmd:` is the model). Some rows already cite ids such as `toolbar.show`, but none is a registry command id yet, and desktop-only ids (including `crates/mcp/src/ui_catalog.rs`) do not count. Update the summary counts when you mark rows. +- `ROADMAP.md` (stage, numbers, progress log), `docs/gaps.md` (ranked work list), `docs/target-app-parity.md`, `docs/roadmap.md` and the parity checklists in `docs/` track progress. Feature PRs update the rows they touch. Headless ([RFC-0052](https://github.com/storytold/craft-contrib/blob/main/rfcs/0052-headless-reach.md)): `docs/ui-parity.md` has a Headless column on the Summary table and every behaviour table; every row is `unknown` until checked (350 unknown today). A checked row may be marked `no ()` or `partial ()` with `window`, `os` or `engine-gap` (a `partial` row's notes say which part works); `yes` only when the row cites a registry command id (LightCraft's `cmd:` is the model). Some rows already cite ids such as `toolbar.show`, but none is a registry command id yet, and desktop-only ids (including `crates/mcp/src/ui_catalog.rs`) do not count. Update the summary counts when you mark rows. - Build, test, fonts, localisation, cursors and robustness details: [`docs/development.md`](docs/development.md). Releases: [`docs/releasing.md`](docs/releasing.md). ### Checks diff --git a/apps/vectorcraft/Cargo.toml b/apps/vectorcraft/Cargo.toml index bc9945e513..1c3e7f39e7 100644 --- a/apps/vectorcraft/Cargo.toml +++ b/apps/vectorcraft/Cargo.toml @@ -69,7 +69,7 @@ vectorcraft-render = { workspace = true } [target.'cfg(target_os = "macos")'.dependencies] objc2 = "0.6" -objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "block2", "objc2-core-foundation", "objc2-quartz-core", "NSApplication", "NSCursor", "NSImage", "NSImageRep", "NSBitmapImageRep", "NSButton", "NSColor", "NSColorSpace", "NSControl", "NSEvent", "NSPasteboard", "NSPopUpButton", "NSResponder", "NSSavePanel", "NSScreen", "NSTextField", "NSTextInputContext", "NSView", "NSWindow"] } +objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "block2", "objc2-core-foundation", "objc2-quartz-core", "NSApplication", "NSCursor", "NSImage", "NSImageRep", "NSBitmapImageRep", "NSButton", "NSColor", "NSColorSpace", "NSControl", "NSEvent", "NSPasteboard", "NSPopUpButton", "NSResponder", "NSSavePanel", "NSScreen", "NSTextField", "NSView", "NSWindow"] } # Files opened from Finder and the Dock (src/open_documents.rs) and pasted bitmaps (src/clipboard.rs); both already come with winit. objc2-foundation = { version = "0.3", default-features = false, features = ["std", "block2", "NSArray", "NSData", "NSGeometry", "NSNotification", "NSOperation", "NSProcessInfo", "NSString", "NSURL"] } block2 = "0.6" diff --git a/apps/vectorcraft/src/app.rs b/apps/vectorcraft/src/app.rs index 83d488a243..b91282e7da 100644 --- a/apps/vectorcraft/src/app.rs +++ b/apps/vectorcraft/src/app.rs @@ -243,14 +243,3 @@ pub(crate) fn open_files(app: &mut VectorcraftApp, files: Vec) { } } } - -/// Tell the macOS input method to drop its composition (the Type tool kept the marked text as -/// typed). winit's IME toggle only clears its own copy, so the IME would type it again. -#[cfg(target_os = "macos")] -fn discard_marked_text() { - if let Some(mtm) = objc2::MainThreadMarker::new() - && let Some(ic) = objc2_app_kit::NSTextInputContext::currentInputContext(mtm) - { - ic.discardMarkedText(); - } -} diff --git a/apps/vectorcraft/src/launch_profile.rs b/apps/vectorcraft/src/launch_profile.rs index 2cc32f39dd..12615dd81d 100644 --- a/apps/vectorcraft/src/launch_profile.rs +++ b/apps/vectorcraft/src/launch_profile.rs @@ -124,10 +124,13 @@ pub fn validate_root(root: &Path, env: impl Fn(&str) -> Option, exe: O /// The arguments a child of this process starts with: a nightly launch hands its profile on, so the /// child opens the same private profile instead of being refused ("Open VectorCraft Nightly…"), and /// `--` keeps a file whose name starts with '-' a file. Stable's child arguments are unchanged. +/// Only `single_instance` starts a child, and macOS does not build it. +#[cfg(not(target_os = "macos"))] pub fn child_args(files: &[String]) -> Vec { child_args_for(current(), files) } +#[cfg(not(target_os = "macos"))] fn child_args_for(profile: &Profile, files: &[String]) -> Vec { let mut args: Vec = match profile { Profile::Stable => Vec::new(), @@ -245,12 +248,14 @@ mod tests { } } + #[cfg(not(target_os = "macos"))] #[test] fn a_stable_child_gets_the_file_delimiter_only() { let child = child_args_for(&Profile::Stable, &["a file.svg".to_string(), "--looks-like-a-flag".to_string()]); assert_eq!(child, args(&["--", "a file.svg", "--looks-like-a-flag"])); } + #[cfg(not(target_os = "macos"))] #[test] fn a_nightly_child_inherits_the_selected_profile() { let root = PathBuf::from(absolute()); diff --git a/crates/ui-egui/src/dialogs/composite_fonts.rs b/crates/ui-egui/src/dialogs/composite_fonts.rs index 61bcee82b7..3ab762bfc5 100644 --- a/crates/ui-egui/src/dialogs/composite_fonts.rs +++ b/crates/ui-egui/src/dialogs/composite_fonts.rs @@ -149,7 +149,8 @@ pub struct CompositeFontsDialog { entry_mode: EntryMode, /// The index of the character picked in the set picked. picked_char: Option, - /// Show Sample's fields ([`sample::defaults`]). + /// Show Sample's fields ([`sample::defaults`]). Zoom previews menu choices and restores its opening + /// percentage on cancellation; a later automation edit takes precedence over that older gesture. sample: Map, /// The view settings of the Composite Font row's picker and of the Character Set row's. pickers: (PresetState, PresetState), diff --git a/crates/ui-egui/src/dialogs/composite_fonts/sample.rs b/crates/ui-egui/src/dialogs/composite_fonts/sample.rs index f266d1ca29..10e9ede502 100644 --- a/crates/ui-egui/src/dialogs/composite_fonts/sample.rs +++ b/crates/ui-egui/src/dialogs/composite_fonts/sample.rs @@ -283,7 +283,8 @@ thread_local! { } /// Show Sample's area under the table: the sample of `f` with the marks `fields` show, then a swatch -/// and a toggle for each mark and Zoom beside it. A change the user makes goes into `fields`. +/// and a toggle for each mark and Zoom beside it. Zoom writes live proposals into `fields`, restores +/// its opening percentage on cancellation and preserves a later automation edit. pub(super) fn show(ui: &mut Ui, fields: &mut Map, f: &CompositeFont) { let zoom_now = zoom(fields); let marks: Vec = Mark::ALL.into_iter().filter(|m| on(fields, m.field())).collect(); @@ -318,8 +319,10 @@ pub(super) fn show(ui: &mut Ui, fields: &mut Map, f: &CompositeFo } Row::new().id_salt("zoom").show(ui, |ui, _| { Text::new(tl!("Zoom")).show(ui); - if let Some(z) = Select::new(tl!("Zoom"), Bind::given(zoom_now), &entries).show(ui).value().copied() { - fields.insert("zoom".into(), json!(z)); + let mut chosen_zoom = zoom_now; + Select::new(tl!("Zoom"), Bind::bound(&mut chosen_zoom), &entries).show(ui); + if chosen_zoom != zoom_now { + fields.insert("zoom".into(), json!(chosen_zoom)); } }); }); @@ -384,3 +387,94 @@ pub(super) fn draw(f: &CompositeFont, size: f64, baseline: f64, px: (u16, u16), let empty = || vectorcraft_render::Rendered { width: u32::from(w), height: u32::from(h), pixels: vec![0; usize::from(w) * usize::from(h) * 4] }; RENDERER.with(|r| r.borrow_mut().render_node(&doc, &node, w, h, view)).unwrap_or_else(empty) } + +#[cfg(test)] +mod zoom_tests { + use craft::ui::contract::Role; + use craft::ui::dialog::dialog_id; + use egui::{Key, Modifiers, vec2}; + use vectorcraft_engine::Session; + + use super::super::{KIND, open, with_dialog}; + use super::*; + use crate::VectorcraftApp; + use crate::tests::panel_harness::Panel; + + fn opened(width: f32) -> Panel { + let mut app = crate::testing::windowed(VectorcraftApp::new(Session::new(), Default::default())); + app.run("file.new", json!({"width": 300, "height": 200})).unwrap(); + let mut panel = Panel::new(app, crate::tests::picks::dialogs); + panel.room(vec2(width, 1000.0)); + open(&mut panel.app()).unwrap(); + with_dialog(&panel.app(), |dialog| { + dialog.fonts = vec![CompositeFont::new("Sample draft", "Source Sans 3", "Regular")]; + dialog.select(0); + }) + .unwrap(); + panel.frame(); + panel.click("Show Sample"); + panel + } + + fn fields(panel: &Panel) -> Map { + with_dialog(&panel.app(), |dialog| dialog.sample.clone()).expect("the Composite Fonts dialog remains open") + } + + #[test] + fn composite_sample_zoom_escape_restores_the_opening_value() { + for width in [1024.0, 1280.0] { + let mut panel = opened(width); + let before = fields(&panel); + let (document, undo, revision) = { + let app = panel.app(); + let st = app.session.active().unwrap(); + (st.doc.clone(), st.history.undo.len(), st.revision) + }; + assert_eq!(panel.value_role("Zoom", Role::COMBO_BOX).as_deref(), Some("100%")); + panel.click_role("Zoom", Role::COMBO_BOX); + panel.key(Key::ArrowDown, Modifiers::NONE); + assert_ne!(fields(&panel)["zoom"], before["zoom"], "the open popup previews its proposed magnification"); + panel.key(Key::Escape, Modifiers::NONE); + assert_eq!(fields(&panel), before, "Escape restores the complete sample draft while keeping the parent dialog open"); + assert_eq!(panel.value_role("Zoom", Role::COMBO_BOX).as_deref(), Some("100%")); + let app = panel.app(); + let st = app.session.active().unwrap(); + assert_eq!(st.doc, document); + assert_eq!(st.history.undo.len(), undo); + assert_eq!(st.revision, revision); + } + } + + #[test] + fn composite_sample_zoom_accepts_pointer_and_keyboard_choices() { + let mut panel = opened(1280.0); + panel.click_role("Zoom", Role::COMBO_BOX); + panel.key(Key::ArrowDown, Modifiers::NONE); + panel.key(Key::Enter, Modifiers::NONE); + assert_eq!(fields(&panel)["zoom"], json!(200)); + panel.click_role("Zoom", Role::COMBO_BOX); + panel.key(Key::ArrowDown, Modifiers::NONE); + panel.key(Key::Escape, Modifiers::NONE); + assert_eq!(fields(&panel)["zoom"], json!(200), "a later cancellation restores the last accepted choice"); + panel.click_role("Zoom", Role::COMBO_BOX); + panel.click("400%"); + assert_eq!(fields(&panel)["zoom"], json!(400)); + assert_eq!(panel.value_role("Zoom", Role::COMBO_BOX).as_deref(), Some("400%")); + } + + #[test] + fn composite_sample_zoom_preserves_an_automation_edit_during_a_popup() { + let mut panel = opened(1280.0); + panel.click_role("Zoom", Role::COMBO_BOX); + panel.key(Key::ArrowDown, Modifiers::NONE); + assert_eq!(fields(&panel)["zoom"], json!(200)); + { + let app = panel.app(); + let ctx = app.ui_ctx.clone().unwrap(); + app.dialogs().unwrap().with(|host| host.set_json_field(&ctx, dialog_id(KIND), "zoom", json!(400))).unwrap(); + } + panel.key(Key::Escape, Modifiers::NONE); + assert_eq!(fields(&panel)["zoom"], json!(400), "canceling an older popup must not undo the later automation edit"); + assert_eq!(panel.value_role("Zoom", Role::COMBO_BOX).as_deref(), Some("400%")); + } +} diff --git a/crates/ui-egui/src/dialogs/proof_setup.rs b/crates/ui-egui/src/dialogs/proof_setup.rs index 9e0ce9adc7..8cba3096d1 100644 --- a/crates/ui-egui/src/dialogs/proof_setup.rs +++ b/crates/ui-egui/src/dialogs/proof_setup.rs @@ -469,11 +469,11 @@ fn take() { } } -/// Wait for the listing under way and take it in. +/// Wait for the listing under way, however long it takes, and take it in. #[cfg(test)] pub(crate) fn wait() { if let Some(queue) = &saved().queue { - queue.finish(std::time::Duration::from_secs(10)); + assert!(queue.finish(std::time::Duration::MAX), "the listing of the Proof Setups folder could not finish"); } take(); } diff --git a/crates/ui-egui/src/scripts_menu.rs b/crates/ui-egui/src/scripts_menu.rs index 443984de53..e8b1f229d9 100644 --- a/crates/ui-egui/src/scripts_menu.rs +++ b/crates/ui-egui/src/scripts_menu.rs @@ -201,13 +201,13 @@ fn take() { } } -/// Wait for the reads under way and take them in. +/// Wait for the reads under way, however long they take, and take them in. #[cfg(test)] pub(crate) fn finish() { { let state = state(); if let Some(queue) = &state.queue { - queue.finish(Duration::from_secs(10)); + assert!(queue.finish(Duration::MAX), "the reads of the Scripts folder could not finish"); } } take(); diff --git a/crates/ui-egui/src/tests/scripts_menu.rs b/crates/ui-egui/src/tests/scripts_menu.rs index 2b25e7cb12..4ff41ffb29 100644 --- a/crates/ui-egui/src/tests/scripts_menu.rs +++ b/crates/ui-egui/src/tests/scripts_menu.rs @@ -3,9 +3,8 @@ //! is gone, the notes and the reads of the folder. use std::sync::Arc; -use std::time::Duration; -use craft::host::{AppInfo, Host, ThreadJobs}; +use craft::host::{AppInfo, Host, ManualJobs, ThreadJobs}; use craft::menu::Node; use serde_json::{Value, json}; use vectorcraft_engine::Session; @@ -260,13 +259,19 @@ fn a_script_that_left_the_folder_is_not_run_and_the_folder_is_read_again() { fn the_read_after_a_script_that_left_the_folder_asks_for_a_frame() { let dir = folder("gone-frame"); let mut app = app(&dir); + // The reads' lanes wait until the test runs them, so the test knows when the read has ended. + let jobs = Arc::new(ManualJobs::new()); + let held = crate::testing::ui_context(); + Host::builder(AppInfo { id: "vectorcraft", name: "VectorCraft", version: "0" }).jobs(jobs.clone()).install(&held); + app.ui_ctx = Some(held.clone()); let gone = write(&dir, "gone.js", DRAW); - read(&app); + scripts_menu::refresh(&app, &held); + scripts_menu::finish(); std::fs::remove_file(&gone).unwrap(); let (tx, frames) = std::sync::mpsc::channel(); let test = std::thread::current().id(); // The observer sees every request; the repaint callback drops one no sooner than the first read's, still pending. - ctx().set_repaint_observer(move |_| { + held.set_repaint_observer(move |_| { // The read's lane asks from a thread of its own. if std::thread::current().id() != test { let _ = tx.send(()); @@ -275,8 +280,10 @@ fn the_read_after_a_script_that_left_the_folder_asks_for_a_frame() { assert!(menus::run_ui_command(&mut app, scripts_menu::COMMAND, &json!({ "path": gone })).unwrap().is_err()); // With the app's copy of the context dropped, only the queue's wake can still ask for a frame. app.ui_ctx = None; - let asked = frames.recv_timeout(Duration::from_secs(10)); - ctx().set_repaint_observer(|_| {}); + let lanes = Arc::clone(&jobs); + assert!(std::thread::spawn(move || lanes.run_all()).join().unwrap() > 0, "the read ran on a lane"); + let asked = frames.try_recv(); + held.set_repaint_observer(|_| {}); assert_eq!(asked, Ok(()), "the finished read asks for a frame so an idle window takes it in"); scripts_menu::finish(); let _ = std::fs::remove_dir_all(dir); diff --git a/docs/mcp.md b/docs/mcp.md index 43673732f1..fe44a42ff5 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -13214,7 +13214,10 @@ The em box and ICF box are those of the font of the part that sets the sample's custom set that holds that character), the cap height and x-height those of the face the Roman letters are drawn in (a fallback face when the part's font lacks the character), Max Ascent/Descent the highest ascent and lowest descent of the faces the sample uses, and Max Ascender the top of its tallest glyph; each takes its part's size, baseline and vertical scale. Zoom draws it at 25% to 800% of 36 pt. The -sample text, the zoom steps and the size are VectorCraft's own. OK runs `type.compositeFonts.set` with every font as one +sample text, the zoom steps and the size are VectorCraft's own. Highlighting a Zoom choice previews it in the sample; +Enter or a click accepts it, and Escape restores the percentage from when the menu opened. A later `ui.dialog.set` +edit of `zoom` is preserved when the older popup is canceled. These Zoom interactions change only the sample preview, +without editing the document or its Undo history. OK runs `type.compositeFonts.set` with every font as one undo step; a refused font keeps the dialog open. `ui.dialog.set` takes `custom`, `entry` and `char` (the index of the character picked in the set) as soon as the dialog opens, and `sample` (true or false), `zoom` (25, 50, 75, 100, 200, 400 or 800) and `lineIcfBox`, `lineEmBox`, `lineBaseline`, `lineCapHeight`, `lineAscentDescent`, `lineAscender` and diff --git a/docs/ui-parity.md b/docs/ui-parity.md index fec2dc4db0..1cb72749fb 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -75,7 +75,7 @@ Artboard Options forwards the active Artboard tool's Scale Artwork with Artboard | Date | Change | Summary | |---|---|---| -| 2026-11-28 | minor | Headless (RFC-0052) column on the Summary table and every behaviour table: 349 unknown, with marking rules | +| 2026-11-28 | minor | Headless (RFC-0052) column on the Summary table and every behaviour table: 350 unknown, with marking rules | | 2026-11-24 | minor | G12: History row context menus use shared Craft List and Menu controls after rebasing onto the panel migration. App-specific actions retain the chosen snapshot across pending edits and dismiss on document switches; keyboard context requests and focus restoration use the shared runtime. Regression cases retained (#8845); scores and estimates unchanged. | | 2026-11-21 | minor | G12/M14: History row context menus retain the chosen snapshot while the menu is open and pending edits settle; jumps settle typing before counting undo/redo, and discarded states report that they are unavailable. Shift+F10 opens the focused row menu, Escape restores row focus, and switching documents dismisses the popup. History checklist, area and milestone evidence updated (#8845); scores and estimates unchanged. | | 2026-11-20 | minor | G12: Asset Export tiles have item context menus for Export, Remove, Rename, Select Artwork on Canvas and collecting selected artwork; right-click selects an unselected tile and preserves an existing multi-selection. Headless regressions: panels::tests_asset_export. Scores and estimates unchanged. | @@ -186,9 +186,9 @@ tools, never checked side by side) isn't captured row by row. ## Headless (RFC-0052) -**Headless ([RFC-0052](https://github.com/storytold/craft-contrib/blob/main/rfcs/0052-headless-reach.md)): 0 yes, 0 no (window 0, os 0, engine-gap 0), 0 partial, 349 unknown.** +**Headless ([RFC-0052](https://github.com/storytold/craft-contrib/blob/main/rfcs/0052-headless-reach.md)): 0 yes, 0 no (window 0, os 0, engine-gap 0), 0 partial, 350 unknown.** -Every parity table on this page has a Headless column: the Summary table (12 area rows, including the overall row) and the behaviour tables (337 rows). Every row is `unknown` until it is checked. A checked row may be marked `no ()` or `partial ()` by hand, where the reach is `window` (needs the desktop window, a dialog or the pointer), `os` (needs an OS or online service the engine doesn't wrap) or `engine-gap` (could be a command, isn't one yet). A `partial` row's notes say which part a headless client can do. `yes` only when the row cites a command id from the engine registry that `vectorcraft-cli` and the MCP server load (LightCraft's `cmd:` check is the model). Some rows already cite command ids such as `toolbar.show`, `tool.select` and `guide.add`; those are not enough for `yes` until they are registry ids, and desktop-only ids (including the generated list in `crates/mcp/src/ui_catalog.rs`) do not count. Update the counts in this line when you mark rows. +Every parity table on this page has a Headless column: the Summary table (12 area rows, including the overall row) and the behaviour tables (338 rows). Every row is `unknown` until it is checked. A checked row may be marked `no ()` or `partial ()` by hand, where the reach is `window` (needs the desktop window, a dialog or the pointer), `os` (needs an OS or online service the engine doesn't wrap) or `engine-gap` (could be a command, isn't one yet). A `partial` row's notes say which part a headless client can do. `yes` only when the row cites a command id from the engine registry that `vectorcraft-cli` and the MCP server load (LightCraft's `cmd:` check is the model). Some rows already cite command ids such as `toolbar.show`, `tool.select` and `guide.add`; those are not enough for `yes` until they are registry ids, and desktop-only ids (including the generated list in `crates/mcp/src/ui_catalog.rs`) do not count. Update the counts in this line when you mark rows. ## Pen, Curvature and anchor tools @@ -516,6 +516,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po | Control bar: numeric Corner Radius for eligible selected ordinary and live corners (part of #7238, request 3 only) | done | Anchor Points visibility group; common/mixed values, general document units and multi-object edits through `object.setLiveShape`, one Undo. A partial selection containing no eligible corners contributes no target. Corner kind and relative mode are retained; existing corner-widget selection, widget visibility and maximum-radius behavior are unchanged. Requests 1/2 remain open. | unknown | | Stroke panel: custom arrowheads after the built-in ones in both arrowhead menus, from the arrowheads file that the panel menu's Edit Arrowheads… opens; saving the file reloads the menus, and a stroke keeps a copy of its custom head's art | done | [Apply stroke on an object](https://helpx.adobe.com/illustrator/using/stroke-object.html) (Customize arrowheads); the file's layout (one symbol per head, pointing right, tip at the registration point, height drawn as wide as the built-in heads) is VectorCraft's own; `stroke.arrowheads.edit`, `stroke.arrowheads.list`, `stroke.arrowheads.reload`, `stroke.set` `{custom: name}`; engine `tests::arrowheads`, `stroke::tests_arrows::custom_heads_draw_their_own_art_at_the_tip` | unknown | | Control bar: Paragraph: link and Align left/center/right while type is selected (#5372) | done | After the Character controls, as the public documentation has the Control panel format paragraphs ([Paragraph panel overview](https://helpx.adobe.com/illustrator/using/formatting-paragraphs.html), [Align text](https://helpx.adobe.com/illustrator/using/align-text.html)); the link opens the Paragraph panel in a popover, as Character: does with the Character panel. The bar trims from its right end: X/Y/W/H, Distribute, Align, area type vertical alignment, then these buttons, then the link. The three-button set is our choice for room; all seven alignments are in the popover. `panels/paragraph/tests.rs` headless tests (`the_control_bar_shows_the_paragraph_alignment_of_the_selected_type`, `the_control_bar_trims_its_paragraph_section_after_the_controls_to_its_right`) | unknown | +| Composite Fonts sample Zoom restores canceled choices | done | Highlighting previews a percentage; Enter or a click accepts it, and Escape restores the previous choice without editing the document or Undo history. A later automation change is preserved. | unknown | | Pathfinder shape results keep their source names and SVG IDs | done | #1293; Minus Front keeps the back name, Minus Back the front name; Unite/Intersect/Exclude use the backmost named input; compound output carries it once; geometry and paint unchanged | unknown | | Attributes fill-rule controls with a compound member selected | done | Edits the compound's rule; direction still edits only the member; rendered-hole and Undo/Redo regression tests (#1197) | unknown | | Info panel follows the tool in use: W and H show the change in x and y, with the distance and the angle, while the selection moves, the Gradient tool draws a vector or a Pen drag pulls out an anchor's handle; the Scale tool's percentages; the center and angles of a Rotate, Reflect or Shear tool drag; the Zoom tool's magnification; the Paintbrush's brush. W and H follow Use Preview Bounds, several selected objects show only the paint and type they share, and Show Options names a tint or a gradient swatch | done | `info.readout`; `Tool::readout`; behavior from the Info panel overview in the [archived user guide](https://web.archive.org/web/20220911143322/https://helpx.adobe.com/pdf/cs6/illustrator_reference.pdf#page=76); number formats, the rows shown between drags and the Direct Selection and Group Selection readouts are VectorCraft's own | unknown |