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).
Part of #4934. type.retype set a line spaced by tracking as one point
type object per glyph, since untracked type does not draw the glyphs
where the outlines are.
- A line of three or more glyphs that most gaps space evenly apart now
takes that spacing as its tracking (1/1000 em, tried rounded to a
whole number within 0.05, then as measured). The font's advances and
pair kerning are left out of the measure, and word spaces are counted
after the tracking. When untracked type also draws the line, the line
stays untracked if the tracking is under one unit or the tracked type
would drop a gap one space wide, so "a b c" stays "a b c". Negative
tracking is set only on opaque, Normal lines with a solid fill or
none and no stroke.
- Where a line splits, the glyphs after the split take the tracking
their own gaps give, and a tracked line whose type misplaces its
first glyphs is set again without tracking. The measure has a layout
budget, so long or widely spaced lines are bounded.
- The result's fonts entries add tracking.
These rules are VectorCraft's own. Docs: docs/mcp.md (Retype tracking),
docs/type-parity.md (Retype row), docs/target-app-parity.md,
docs/roadmap.md (M7 row).
Swap Fill and Stroke on a whole Live Paint group compared the faces'
fills without gradient placement, so faces with freeform gradients
counted as one shared fill and the edges took a freeform gradient
without its points. A freeform gradient on any face or edge now counts
as a paint the parts do not share, and the group keeps its paint.
- docs/mcp.md says that a face or edge given with its whole group follows
the group's rule, and that Default Fill and Stroke replaces the parts'
appearance also when the Default Graphic Style is redefined.
- The progress-doc line states the behavior as VectorCraft's own rule and
lists all eight tests.
- Tests cover freeform faces in Swap, an edge given with its group, and
Default Fill and Stroke with a redefined Default Graphic Style.
A new tool in the Pen tool's group, chosen with Alt+P (Option+P on
macOS), draws paths of straight lines and circular arcs, as the Quick
Pen help pages describe:
https://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/draw-with-quick-pen-tool.htmlhttps://helpx.adobe.com/illustrator/web/add-and-edit-artwork/draw-and-edit-paths/quick-pen-tool-keyboard-shortcuts.html
- A click sets the start point; each click, or a press dragged to where
it is let go, adds a line, a continuous arc (it leaves the last point
in the path's direction) or a sharp-corner arc, as the tool's action
says. Each piece is one undo step.
- Alt (Option) pressed and let go on its own switches to the next
action. C flips the last sharp-corner arc to the other side of its
chord, and [ and ] make the arc size 15 degrees smaller or larger.
- A click on the first point closes the path, a click on an end of an
open path continues it, and Escape or Enter ends it. An edit made to
the path from outside the tool also ends it.
- path.quickPen {start | id, subpath?, keep?, pieces, closed?} draws
the same path for agents and scripts. The action and arc size are
kept with the preferences.
The 180 degree default arc size, its 15 degree steps, the side an arc
bulges to and Enter ending the path are VectorCraft's own rules.
Part of #2660 (reported by earlvanze). Not yet: the on-canvas toolbar,
dragging a path's ends to change its length, Ctrl+scroll for the arc
size, and editing and deleting with the tool.
With a tool other than the Live Paint Bucket, a fill given to a whole
selected Live Paint group paints its faces only and a stroke paints its
edges only, instead of applying to the group as a whole. The hidden
source paths keep their paint.
- paint.setFill, paint.setStroke, paint.none, paint.lastColor,
paint.lastGradient, paint.editGradient, paint.setGradientGeom, the
paint.freeform point and line edits, paint.invert and
paint.complement go to the faces for a fill and the edges for a
stroke, also for a group given in ids or inside a selected group.
- stroke.set, stroke.weightUp, stroke.weightDown and stroke.setAdvanced
change the edges.
- The Fill proxy shows the faces' fill, and the Stroke proxy, the Stroke
panel and the Control bar show the edges' stroke. When the first
selected object is a Live Paint group with no faces (or no edges),
they show the next selected object's paint.
- paint.swap gives the faces the stroke the edges share and gives the
edges the fill the faces share, with a gradient fitted to each face
or edge. A group whose faces' fills or edges' strokes differ, or that
has no face or no edge, is left as it is.
- paint.default leaves the faces with no fill and gives the edges a
0.5 pt black stroke; with only Live Paint groups selected, the
settings for new art take the same.
Docs: docs/mcp.md (Live Paint), docs/target-app-parity.md (Live Paint
evidence), params text of the changed commands.
stroke.weightUp and stroke.weightDown now go through bucket_color_params and
item_target, as stroke.set and stroke.setAdvanced do, instead of skipping
item_target while the Live Paint Bucket is active. Each command still
refuses `target` and `aligned` with any tool, since neither is one of its
parameters.
- live_paint_bucket_refuses_a_bad_target_or_aligned (renamed from
live_paint_bucket_refuses_a_bad_target) runs with the Selection tool and
with the bucket, and adds stroke.set, stroke.weightUp, stroke.weightDown,
paint.swap and paint.default.
- live_paint_bucket_paint_and_stroke_commands_leave_the_selection_unpainted
adds stroke.set with `ids: null` and stroke.weightUp with `id: null`.
- The params text of the bucket-routed commands says a null ids or id
counts as none.
- docs/mcp.md names gradient.presets.apply next to paint.editGradient for a
picked symbol part, lists when a stop selected on the bucket's gradient is
deselected, and rewraps the two long lines.
docs/mcp.md now says that `automaticAlignTo` changes only `object.align`
steps, and that `object.distribute` and `object.distributeSpacing` steps
play with the `to` they were recorded with. The edited paragraphs are
rewrapped to the width of the rest of the file.
object.align takes to: "auto", which aligns to the key object, key
anchor or key guide when the selection has one, else to the artboard
when exactly one object is selected and no anchor points are, else to
the selection.
New Action and Action Options have Choose Align To at playback
(automaticAlignTo on ui.action.new and ui.action.options), off by
default. With it on, playback sends to: "auto" for each object.align
step, without any artboard index the step stores, so the step uses the
active artboard; the stored steps keep their recorded params. Save
Actions writes the option, and a set that uses it is saved as file
version 7.
The dialog's strings have rows in every catalog, and docs/mcp.md
describes to: "auto", automaticAlignTo and file version 7.
Fixes#6972. Supersedes #7635.
Co-authored-by: yoriswind <yoriswind@yahoo.com>
- While the Live Paint Bucket is active, a paint or stroke command with
a null ids or id goes to the bucket's colors, as one without them does.
Before, it painted the selection, since other commands read a null ids
or id as no target.
- A bad target or aligned value is refused while the bucket is active,
as it is with any other tool, instead of changing the bucket's colors.
- stroke.weightUp and stroke.weightDown no longer read the selection's
active Appearance row while the bucket takes the weight, as stroke.set
and stroke.setAdvanced already do. The row was not used in that case.
- The params text of gradient.selectStop says that, while the bucket is
active, it selects a stop of the default paint's gradient, also with an
object of a symbol instance picked. docs/mcp.md says the same, and that
paint.editGradient without ids, id or item then changes the bucket's
gradient.
- docs/mcp.md again says that another tool chosen after the bucket keeps
its colors until a command or a new selection changes them.