The page comparison tells type that differs from art that differs by
where the layers' text objects are (`type_areas` and `all_type_areas` in
`crates/eps/src/import/native/compare.rs`). Type made from the file's
text document has no layout then, so its box was the estimate of type
without one, running right from its anchor: right-aligned type draws on
the other side of it, centered type half outside it, vertical type
across it. What differed there (type laid out again, or in another
font) was counted as art, which is held to a stricter limit: the layers
could be refused and the file sent to its PDF part or page, or the note
said the art differs where the type does.
The type areas now come from where the type draws: `drawn_box`, the box
the first commit matches by, moved to `slots.rs` so both use it. The
page's own type keeps its measured box, as before.
`prune_unseen` and the boxes of made type that doesn't show still use
the estimate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Type made from a file's text document has no layout when the import
matches it with the page's type, so the box it was matched by was the
estimate of type without a layout: as wide as an average font would set
it, running right from its anchor. Right-aligned point type draws on the
other side of its anchor, centered type lies half outside that box, and
vertical type runs down the page across it. Where the text document
makes the type of every text object that shows (`made_only`), the page's
type there was then nobody's: the import noted "some of the page's type
has no text object in the layers, so it is left out" for type that is in
the layers, and the made type, not seen on the page, was weighed against
the page as type the page may not draw, and sometimes taken out.
`made_only` (`crates/eps/src/import/native/plan.rs`) now takes the box
of made point type that shows from its layout (`drawn_box`), in the
fonts the import has, as the document measures it once it is open. The
node itself keeps no layout, so the document's type is measured when it
opens, as before. Area type and type on a path are matched by their
frame and path, as before.
Where some text object's type isn't made (`plan`), the box stays the
estimate: there the page's pieces in the box where made type draws can
belong to text objects stacked on it whose type isn't made, and the
made type would take them all.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The contrast row, its menu rows and its tests move to the craft UI framework,
as main's Color Wheel panel now uses it:
- The row is a Row with a Swatch named Background (a color well whose value is
the background's hex value) and Text for the ratio and the AA and AAA
results, each with the WCAG minimums as its tooltip.
- Show Contrast, Contrast For and Contrast Background are rows of the panel
menu's items (ui.colorWheel.contrast, contrastFor.<id>,
contrastBackground.below and contrastBackground.current), after Show
Opacity. Current Color is gray, and its row answers an error, while the
active proxy has no solid color.
- The kept background and ratio answer are fields of WheelUi instead of panel
state. The answer's key also holds whether the Live Paint Bucket paints,
which changes the proxies' paint without a document revision.
- The row's tests run in the panel's Fixture by accessible name; the drag test
runs an interaction whose previews set the fill, as the Show Document Colors
drag test does.
- The settings lists in the params text, docs/mcp.md and the tests take both
opacity and the contrast keys.
Export… in the Print Presets, PDF Presets, Transparency Flattener Presets
and Perspective Grid Presets dialogs suggested the document's name
(Untitled.vcprintpresets). It now suggests the selected preset's name with
the format's extension, made safe as a file name the way Export Library…
makes a library's. A built-in preset's file is named without its brackets
([Default] gives Default.vcprintpresets). The four dialogs share one
helper, preset_manager::export, and the web downloads the file under the
same name.
The panel's style browser used one id for every document, and styles
are keyed by name. A rename field left open in one document moved to
the next document's style of the same name, with the text typed so far,
and Enter renamed that document's style. The browser id now includes
the document's uid, so the open rename field and the scroll position
are kept per document.
The new test types into a style's rename field, switches documents,
types again and presses Enter. Without the change the second
document's style is renamed to "XY".
The test paints a dashed Overlay::Line that runs far past both sides of
the canvas through paint and checks that only the dashes near the canvas
are drawn, all on the line.
The Align panel's buttons, and the Object > Align and Object > Distribute
items that run the same commands, are UI commands. Their enabled check
returned only true or false, so a dimmed button was described as "command
`Vertical Distribute Top` is not available right now", in its tooltip and
to screen readers.
They now give the reason of the engine command the button runs: "select at
least two objects" for Distribute with fewer than two objects, "nothing
selected" for Align, "no document open". With the Artboard tool chosen
they say how many artboards Distribute needs ("select at least three
artboards", or two with Align to Artboard).
A dimmed menu item's reason is now shown in the interface language, as
the fallback text already was.