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.
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.
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.
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.
The fill check rejects a counter whose convex hull is narrower than three times the outline tolerance in some direction, so a turned strip is caught as well as an upright one, and rejects a shape whose outline is too large to flatten. Exact parts of a split compound are checked at tolerance 0 even when near matches are allowed, so a split that only exact matching found is not accepted under the wider tolerance. The tracking sentence in docs/type-parity.md names its three-glyph condition.
The parts of a split compound path are set as separate glyphs, so an overlap
that the compound's fill rule leaves unpainted would come out painted. A
split whose parts paint differently from the compound, whose combined outline
is too large to probe, or whose parts' boxes overlap in a strip too thin to
probe, stays an outline. A counter narrower than three times the outline
tolerance cannot be checked by the fill probes, so the shape stays an outline.
The params text says a command errors when no shape becomes type.
Show the native point marker at the existing cut target, respecting consumer endpoint eligibility/canonicalization and current snapping/selection. Keep cut commands unchanged.
Closes#8655.
Glyphs indexed only for near matching no longer take part in exact matching,
so a curve split in two is no exact match at tolerance 0. Each pose of a match
reports its own residual. A near match spends its comparison allowance from
the shared budget in one step and returns what it leaves, and does no
sampling once the budget is spent. A glyph replaces a filled shape only when
it paints the area the shape paints under the shape's fill rule. The docs
define the tolerance by the outline spread and separate the no-conversion
error from the unmatched list.
Part of #4934. type.retype set each line of outlined text as its own
point type object, even when the lines stack as one paragraph.
- Opaque, Normal lines with a solid fill or none and no stroke that
follow each other in paint order, with the same group, paint, font,
size, turn and tracking, each the same leading (0.25 to 3 times the
size) below the one before and lined up at their starts, ends or
centers, become one area type object. Its leading is Auto when Auto
puts the last baseline in place, else the mean distance between the
baselines, and its alignment is left, right or center. Its frame is
Convert To Area Type's, now shared through typemenu::point_to_area.
An untracked line of one or two glyphs takes the others' tracking.
- Every object is laid out and compared with the outlines first: when
area type would move a glyph the lines stay multi-line point type.
When that also moves a glyph, the block ends at that glyph's line and
the lines after it join again. Type whose bounds would reach past the
coordinate limit stays apart.
- Text Wrap objects above new area type are taken into account; when
checking them on the changed layers would copy more than 2,000,000
anchors, subpaths and shapes, the lines stay multi-line point type.
text::wrap_copy_units counts that work without copying the outlines,
and wrap_work no longer copies them to count.
- The result's fonts entries add leading and area, and texts join an
object's lines with line breaks.
These rules are VectorCraft's own. Docs: docs/mcp.md (Retype several
lines), docs/type-parity.md (Retype row), docs/target-app-parity.md,
docs/roadmap.md (M7 row).
The proxies and the paint commands that name no objects stood for the Live
Paint Bucket's colors only while the bucket itself was the active tool. Two
tools that work for the bucket lost them:
- The Gradient panel's eyedropper on a stop of the bucket's gradient: the
stop was deselected as soon as the Eyedropper became active, and the click
then copied the clicked object's appearance onto the selection.
- A Cmd-click with the bucket, which the Selection tool takes: with New Art
Has Basic Appearance off, the new selection's appearance replaced the
bucket's fill and stroke.
Session::bucket_paints() now answers for the bucket, the Eyedropper armed
for a stop of its gradient (Tool::returns_to), the Selection tool lent to
either, and the actions of the Eyedropper's click that end by switching back
to the bucket. Every check that compared the tool id with the bucket's now
uses it: the proxies, the Stroke panel, the selected stop's owner, new-art
inheritance, previews and their cancel.
- The armed pick ends without sampling, and switches back to the bucket,
when its stop is no longer selected or no longer exists.
- Clicking the panel's eyedropper again while a pick is armed keeps the tool
the pick returns to.
- The Color panel's cached mixed state is keyed on bucket_paints().
- A Brush Options Key Color pick or an Image Trace ignored-color pick armed
from the bucket is not a stop pick.
Tests: live_paint_bucket_keeps_its_colors_through_the_stop_eyedropper_and_a_cmd_click
(engine), the stop option test (tools), the stop eyedropper and mixed
selection tests (ui-egui). Docs: docs/mcp.md, the Live Paint Bucket
paragraph.