Every gate since 20 Nov 00:38 UTC except one has been stopped mid-link
with "The runner has received a shutdown signal" (exit 143), on main and
on pull requests. Turn on the shared gate's dev-strip input, as photocraft
does, so the ~100 test binaries link without line tables or symbols.
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The Control bar and the Properties panel show a Corners link beside the
radius field of the picked corners. It opens a pop-up with the corner
kind, the radius (blank while the picked corners differ) and Relative or
Absolute rounding. Each change sets the picked corners of every selected
path in one object.setLiveShape call with items, one undo step: the
corners holding a Direct-Selected anchor, or every corner of a path
selected whole. The Properties panel shows the link while a corner is
Direct-Selected; its corner rows now cover several selected paths too,
and a live rectangle or polygon selected alone, which keeps its own
radius and kind rows, shows the link for the pop-up.
object.setLiveShape with relativeRadii: true now works on a plain path
with corners: the path keeps its outline as the base of its Live
Corners. Before, it did nothing, and relativeRadii: false added an empty
undo step. A Relative path whose corners are all uncut again keeps its
rounding, and Absolute on one with no corner cut makes it a plain path
again.
With Relative rounding, a radius is now compared as the fraction it
would store, so typing the radius the field shows, or a radius past the
corner's maximum again, adds no undo step. Before, it was compared with
the radius as drawn.
Part of #1232. Reported by XTRECY-BD.
README's What's missing no longer names Extrude & Bevel, Inflate and
Rotate; G3 and the effects-parity 3D summary name what remains: base and
Substance materials and shadows from lights after the first.
- A font file that grew past the limits after the installed fonts were
listed counts as skipped, and the bytes read from it count toward the
2 GiB a search reads. A suitcase font's resource fork is read the same
way, no further than one byte past the limit.
- The 500,000-glyph budget counts the glyphs an index draws (each
matched glyph once), not the face's mapped characters.
- The Retype panel's background search hands the command the loaded
fonts that match as well as the installed fonts it found, so a loaded
font that matched stays listed after the fonts found are loaded.
- A shape that no glyph's key fits (more than 48 contours) no longer
keeps type.retype reading installed files after the other shapes
have matched.
Near matching ranked every glyph of the shape's contour count and proportion
before comparing the 256 closest, and that ranking was not counted against the
point comparisons each shape and command may make, so a large selection over
many fonts could spend unbounded time there. Each glyph ranked now takes one
comparison per contour and one more from the same budget, the ranking keeps
the closest glyphs without sorting the rest, and the shares of contour length
are read without allocating per glyph.
The gate's one job builds all 106 test binaries on a 4-CPU, 16 GB runner,
and it is often stopped with exit code 143 ("The runner has received a
shutdown signal") during that build. ci.yml now runs the gate as five
legs:
- Shards 1 to 4 run `cargo xtask ci shard`, which builds and runs the
tests and doctests of its own crates: ui-egui, engine, the apps with
mcp and xtask, and every other crate.
- Shard 5 runs the other `cargo xtask ci` steps.
- On pushes to main, a `cache warm` leg runs `cargo xtask ci warm`,
which builds what every shard builds and saves the dependency cache.
`gate (ubuntu-24.04)` passes only when all five legs passed.
`cargo xtask ci` with no argument runs every step, as before.
`cargo xtask shards` lists each shard's crates. It fails when a crate
named in xtask/src/shards.rs is not a workspace member or is named
twice, and when a crate builds with other features in its shard than in
`cargo test --workspace`. Every shard runs it first. vectorcraft-affinity
and vectorcraft-pdf now turn on `synth` and `read-count` in their own
dev-dependencies, which vectorcraft-engine's dev-dependencies turned on
before. Without that, 39 tests of affinity's `it` binary do not build in
a shard without the engine.
The gate also sets dev-debug "0" and dev-strip: true, so the workspace
crates build without line tables and the test binaries without debug
info or symbols.
Retype compares at most 96 loaded faces in one index: the document's
fonts, the fonts in `fonts` and the faces earlier searches of the
installed fonts loaded come first. Loaded faces past those 96 were never
compared, and the search of the installed fonts leaves loaded faces out,
so a shape only such a face matches stayed unmatched.
- type.retype now compares the loaded faces past the first 96, 96 at a
time, with the shapes that are not plain and that the first 96 do not
match, before it reads any installed file. The background search hands
those faces to the command with what it found in the installed fonts.
- A face that another version of its family and style shadows is no
longer compared ahead of the other loaded faces.
- A background search whose command fails before it takes what the
search found no longer leaves it for a later command.
- With the Retype panel's list full, installed faces count as skipped
only when a shape would start a search of the installed fonts.
- "Retype failed: internal error: its thread stopped" has a row in each
complete catalog.
Docs: docs/mcp.md (Retype installed fonts).
The glyphs of a split compound path can become separate type objects, for
example on two lines. A compound filled by the nonzero rule whose glyphs
overlap passed the paint check, and with an opacity below 100% the two objects
then painted the overlap twice. A split whose parts overlap now keeps the shape
an outline when the shape has an opacity below 100%, a blend mode other than
Normal, a gradient or pattern fill or a stroke.
Splitting a compound path copies its contours and compares each with the
others. A selected compound of a few contours with a very large number of path
elements was split however many elements it had. Such a shape is now matched
whole only, like one of more than 256 groups or 512 contours.
A near-matched glyph joins a line when its size and turn are each within the
tolerance of the line's, and the line's type then draws it at the line's size
and turn. Together with the glyph's own leftover distance, that change could
put the drawn glyph further from its shape than the tolerance: an m 4% larger
and turned 0.04 radians stayed on its line at tolerance 0.05.
The layout check now also measures, for each near-matched glyph (and each glyph
of a line whose first glyph is one), how far the change from its matched size
and turn moves the drawn outline relative to its spread, combined with its own
leftover distance, and splits the line before it when that passes the
tolerance, or when the glyph's center sits further away than its origin may.
* eps: delegate scene-writer shading, image stream, and line style syntax to craft-ps
* chore(eps): repin craft-ps to merged craft-libs main (cfcc86242)
In a CMYK document exported with No conversion, RGB vector colours are
separated into CMYK but placed RGB images are written as RGB. The export
warning still said they "are converted to CMYK through the colour
settings", so files reached printers with RGB images in them.
The warning now counts RGB images by what actually happens to them:
converted to CMYK with a CMYK destination (Convert to destination, or
PDF/X-1a), else written in RGB, with the settings that write them in
CMYK. Grey images stay grey either way and are no longer counted as
RGB. RGB colours keep their wording. The written PDF is unchanged.
Shapes no loaded font matches are now compared with the installed fonts
that nothing has loaded yet. type.retype reads their files one at a time,
smallest first, until each such shape matches a font it has read, and
type.retypeFonts (the Retype panel's list) ranks the matching installed
fonts with the loaded ones, up to 96 fonts in all.
- A file is read for the search and released. A face whose glyphs match
is loaded as it was read, without the family's other files, and later
searches in every open document compare it ahead of the other loaded
faces. A matching face that another version of the same family and
style shadows is loaded and not listed.
- Files over 256 MiB, and the files and faces past 2 GiB read or 500,000
glyphs drawn, are left out and counted in the result's
installed.skipped.
- A plain shape (one contour of up to four straight edges, such as a
rectangle or a hyphen) does not start the search, and matches only a
font the other shapes found.
- installed: false turns the search off; any value other than true,
false or null is an error. retype.find takes installed too.
- In the app, Type > Retype and Find Matching Fonts (the panel's button,
or retype.find from a menu or the command palette) search on a thread
of their own. After 0.4 seconds a progress window shows the files
read, with Cancel (also Esc, retype.cancelSearch). When the search is
done the command runs with the fonts it found, without reading the
installed fonts again, unless the document or its selection changed
meanwhile. Reset Retype Panel and a new search stop a panel search.
An MCP cancel stops the search between files.
Part of #4934.
- eps: restore linear-time memchr::memmem::find in lex::find so
search_in_a_loop_runs_out_of_the_budget does not hit O(N*M) under
craft_ps::read::lex::find.
- ui-egui: wait for FontDb background scan and ensure >20 font families
in menu_access_stationary_pointer_repeat_and_rerun_do_not_retarget_or_double_invoke
so coverage/minimal runners do not race or fall short of 20 families.
A compound path whose split with the longest runs and split with the shortest
runs both failed the paint check stayed an outline, even when another complete
split (AB and CD for groups A, B, C and D) passed it. The split search now
checks the other complete splits in order, at most 32 per shape for exact
matches and 32 for near matches, and looks each run of groups up at most once,
only when the search reaches it.
When the rest of a line after a mark that a split left first starts with
another mark, that rest is no longer measured for tracking. Its own pass
leaves the mark out and measures the glyphs after it, so the earlier
measure was thrown away but still took from the measures shared by every
line in the call. A run of marks could use them up, and a tracked line
retyped with them then lost its tracking and split glyph by glyph.
With the Selection tool, a double-click on a visible corner widget of a
selected live rectangle or polygon now shows and selects the Transform
panel, where the shape's corner radius fields are, as the Rectangle,
Rounded Rectangle, Ellipse, Polygon and Star tools already do. It used to
open the Corners dialog. The tool, the selection, the document and the
undo history stay as they were. Direct Selection's double-click still
opens Corners.
Docs: docs/mcp.md (Live Corners), the ui.corners params text,
docs/ui-parity.md and docs/target-app-parity.md.
Part of #1232
Lines that a compound path of several glyphs splits into share that
shape, so the check that one line's shape comes right after the last
line's never passed for them, and each line stayed an object of its own.
Two lines of one shape now follow each other, and the other joining
rules decide as for lines of separate shapes. The lines of the existing
paint-order test are moved farther apart so they still make two objects.
With Smart Guides' Object Highlighting on, the Eyedropper now outlines
the object under the pointer that a click there would act on, with the
1.5 px layer-color outline the selection tools draw. It follows the
keys held: a plain click's source (locked and template art included,
as the Eyedropper reads them), the selected gradient mesh a click
recolors, the editable object an Alt-click gives the selection's
attributes to, and for a Shift-click the object whose color is sampled
(a blend or an envelope where its art is drawn, the art below where it
leaves a gap). Empty canvas and hidden art show no outline.
The tool finds that object with the same code its click uses: the
click is planned once (Tool::hover_object, Session::hover_object) and
the color sampler returns the object the color came from. The canvas
keeps the object found until the pointer, the keys, the document, the
selection or the tool's settings change, since finding it can sample
a color.
With Space held, a press pans the view, so no tool outlines an object
under the pointer; the selection tools showed one before.
Laying out the pairs after the glyphs a split measures is now set aside before the tracking is measured, so a short budget no longer leaves those pairs to the gap alone; without enough for both, the rest is not measured. Past the measured glyphs, the number of word spaces in a gap is the count among the rounded, lower and upper counts of the gap and the count of the measured one-space distance that fits best, so kerning against a space no longer adds a second space. The pair check also runs on a gap under half a space wide, so kerning toward a space no longer drops it.
Rounding a measured tracking to a whole number now counts the word spaces as well as the glyphs the tracking moves, so a long spaced run after a split keeps a fractional tracking and stays one object.
A drawn bar, dot or ring can be the same shape as a combining mark in
one of the loaded fonts, and Retype turned it into point text that held
only that mark. On Linux, once other tests had loaded the system fonts,
the 80x40 rectangle in a_drawn_shape_is_reported_and_left_alone matched
U+05BD in DejaVu Sans Bold, so that test failed in full runs of the
engine's tests.
- When a shape would start a line and its first 16 matched glyphs
include another character's glyph, in its own font or another loaded
one, it starts the line as that character. A line's first shape is
not turned into a mark to take the glyph after it.
- When all of them are marks, the shape stays an outline and is listed
in unmatched, and the glyph after it starts the line. A lone
one-contour glyph after it (a dot after a bar) is judged alone, as on
its own.
- A mark left at the start of a part split off where type stops
drawing the outlines in place becomes the other character its shape
matches, on a line of its own, or else stays an outline. The glyphs
after it are measured for tracking again without the mark's gap.
- A mark that follows another glyph on its line is retyped with it, as
before.
- type.retypeFonts does not list a font whose glyphs match the shapes
only as combining marks.
Docs: docs/mcp.md and the params text of type.retype and
type.retypeFonts.
With Smart Guides on, hovering a shape tool over another object's anchor
or edge shows the "anchor" or "path" label where the new shape would
start. When the pointer then left the canvas, went under a panel or
menu, or a middle-button drag started panning, the label stayed on the
canvas at the last hover point. The Rectangle, Rounded Rectangle,
Ellipse, Polygon, Star and Line Segment tools now drop it when their
hover ends, and so do the Arc, Spiral, Rectangular Grid and Polar Grid
tools, as the Scissors tool already does.
The remembered HSB, OKLCH and HSL now also belong to the document's undo
step. Another edit, an Undo or a Redo drops them, also when the slider
rows are hidden and the same color comes back before they show again.
docs/mcp.md: color.convert to oklch answers an object with
model "oklch" and values [L %, C, H°].
A line of two glyphs that untracked type does not draw in place takes the
tracking of the nearest tracked line in the same font, size and turn, and
keeps it only when type at that tracking draws both glyphs in place. A line
of one or two glyphs that joins tracked lines in one object takes their
tracking. The Retype row in docs/type-parity.md said other lines are set
untracked.
Past the first 32 glyphs of a rest, a gap now reads as a word space only when spaces fit it better than the joined pair does, as the measured glyphs do. A tracking and kerning that make a kerned pair draw like a space no longer add spaces the source lacks.
With New Art Has Basic Appearance off and an object selected, canceling an
interaction that had previewed a command with defaultsOnly: true replaced
the restored defaults with the selection's appearance. Cancel now skips
the new-art inheritance for such an interaction.
Choosing Quick Pen while a length drag was under way cleared the drawing, so the next preview of the drag carried no path. The drawing is now cleared only when neither a press nor a length drag is active.
An interaction that previewed a command with defaultsOnly: true keeps
putting the defaults it began with back on every later preview and on
cancel, also when the latest preview gives no defaultsOnly. docs/mcp.md
says that library.use keeps item as the library item.
The tracking measured over the first glyphs of a rest is read as a whole number, or as none under one unit, only when the difference moves the last glyph of the rest by no more than the tolerance. A rest whose tracking gives a space a negative advance is measured whole, as one with a small advance is. The whole-rest measure takes the budget for every glyph it reads.
The command rejects sliders: oklch while the active document's RGB space (its assigned profile, else the working RGB space) is not sRGB. Both catalog descriptions now say so.
The end handle's drag now applies the release position before it ends, so a press let go
away from the handle without a drag event still changes the length. An edit made outside
the tool during the press ends the drag, so a later preview does not overwrite it. C and
[ ] do nothing until the drag ends. A selected compound path shows the length handles of
the paths it holds, and path.quickPenLength checks its result against the same canvas rule
as the drag.
With no path being drawn, the Quick Pen tool edits the selected paths, as the
help page describes ("Drag the anchor points or the path to edit the object",
and right-click Delete to remove a path):
- A drag on an anchor moves it, and a drag that starts on one of several
selected anchors moves them all; a drag on a segment moves its two ends.
The tool selects what it moves (select.anchors or select.segments) and
sends path.moveAnchors with interpolate, one undo step per drag, so a
segment with one moved end is turned and scaled to its new ends: a line
stays a line and an arc an arc of the same angle. A dragged anchor snaps
to Smart Guides. Escape during the drag takes it back.
- A click on an anchor selects it alone, and Shift-click adds it to the
selected anchors or takes it out. A click on an open end still goes on
drawing from it (with the path selected whole again), a drag there moves
the end, and a click on a segment starts a new path.
- With the Quick Pen chosen, the canvas context menu has Delete
(edit.clear), which removes the selected anchors or objects.
The cursor shows what a press does over an anchor, a selected anchor, an
open end or a segment. While a path is being drawn, a press adds a piece as
before. Which presses select and which move, and the drag snapping only an
anchor, are VectorCraft's own rules.
Docs: docs/mcp.md, ROADMAP, docs/target-app-parity.md, docs/ui-parity.md,
crates/tools/src/cursors.toml.
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.html
The refusals that ran before the files were read and before a folder was
written stopped Relink and the folder form of Unembed on an image changed
by Perspective Distort or Free Distort, which now keep their corners.
A contour counts as lying inside another only when up to eight of its anchor points do. When the paint check rejects the split with the longest runs, the split with the shortest runs is tried before the shape stays an outline.
The item called the command function directly, so it skipped the app's
command entry point and an error went unreported. It now uses the same
helper as the other panel menu items. The menu test checks that one
command runs.