A fill edit of a selected Live Paint group with edges and no faces edits
no object, yet paint.editGradient accepted an aspect there and returned
no ids, and the Aspect Ratio field stayed enabled.
- paint.editGradient refuses an aspect when the Live Paint filter leaves
no object. Graph design art alone still changes nothing without an
error, as for the other params.
- Session::gradient_edit_has_objects reads the same filtered targets, so
the field is dimmed in that case.
- Params text and docs/mcp.md name the case.
This takes three behavior changes out of the branch, so that it holds the
opaque background and the character cell it fills:
- A single line without advances is aligned as before, without its
trailing spaces. Its cells run across its glyphs' advances from where
its type starts; blanks alone, which draw no type, are filled where the
alignment puts them.
- NULs after a line break add their advance to the character before them,
as before.
- Blanks that are underlined or struck through draw nothing, as before.
A string of NULs alone in an underlined font now fills its cells and
adds no empty type object.
docs/mcp.md no longer describes the three, and docs/target-app-parity.md
lists the background and the cell.
The first commit's body names FontFace::win_ascent_descent as
Face::win_ascent_descent. A device context starts with a background color
that is typically white; the first commit states white as the playback
default.
Shift held once an artboard move or Alt-drag copy is under way keeps it
to the level, upright or 45° line from General › Constrain Angle, as a
Selection tool move does. A Shift-press still draws an artboard inside
another or marquee-selects (#2497). Smart Guides, the grid and whole
pixels slide the move along its line, and the cursor stays the move
cursor during a move.
A metafile playback starts in the opaque background mode with a white
background color, and text drawn in that mode fills its character cells
with the background color before the glyphs. EMF and WMF import now adds
one filled rectangle of the background color behind each line of such
text, before the type, from the font's OS/2 usWinAscent above the
baseline to its usWinDescent below it, as far as the line's advances
reach (NULs and negative advances included). Files that never set the
background mode now import with a background behind their text.
Top and bottom aligned text now has the top or the bottom of that cell at
the reference point instead of 0.8 and 0.2 of the em. A single line
without advances is aligned as long as its glyphs' advances, trailing
spaces included. NULs after a line break move the start of that line,
and underlined or struck through blanks draw their bars.
Face::win_ascent_descent gives the OS/2 usWinAscent and usWinDescent
separately, at a variable font's instance.
retype.find reads `more` with opt_bool, which treats null as omitted, so
`{more: null}` runs a new search. The params text said any value other
than true or false is an error. The params text, its MCP mirror and
docs/mcp.md now say that false, omitted or null runs a new search and
that a value other than true, false or null is an error. A test checks
that a null more lists the first ten again.
paint.editGradient with an aspect returned ok and changed nothing when it
edited no object: with the Live Paint Bucket active (its default gradient)
or with nothing paintable selected. The default gradient for new art is
fitted to each object it paints and keeps no aspect, so the aspect was
dropped.
- paint.editGradient now refuses an aspect when it edits no object, and
leaves the default gradient as it was. Named or selected objects still
take the aspect.
- The Gradient panel's Aspect Ratio field is dimmed in that case
(Session::gradient_edit_has_objects).
- Params text and docs/mcp.md say so.
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.