Each piece of a long drag's line also held the first segment of the next
piece, so that segment was drawn twice, once by each piece. Where the
line is thin or partly covered at its edges, the doubled coverage drew a
darker stretch every 64 segments. A piece now ends halfway along the
segment after its last point, and the next piece starts there, so a wide
line still turns at the piece's last point as one line does.
text.similarFonts lists every family text.fontList lists, the fonts
installed on the system included, so it joins the commands a plug-in may
not call, as text.fontList is. every_command_is_reviewed failed because
the command was in neither reviewed list.
Each tangent measured every segment of both paths to find where it
touches them, so two paths of thousands of segments with thousands of
tangents took segments × tangents work. Each line now starts from the
segment found for the nearest sampled direction and walks outward only
as far as the stretch that lies along it. On two 2,000-sided polygons
with 4,000 tangents, the segment measurements drop from about 33.5
million to 1.6 million.
A turned or scaled ellipse is measured exactly however thin it is. A
map is refused only when its determinant is within the rounding of its
entries; before, an ellipse more than about 1e12 times longer than wide
was refused as having no area.
object.cropImage with ppi now checks that the source, its 16-bit
weighted copy, the resampler's intermediate rows and the results fit in
the raster allowance (2 GB, 512 MB in the web app) before it resamples,
and refuses with "an image of {w} × {h} pixels is too large to resample"
otherwise. A crop that is drawn first frees the drawing's PNG before its
pixels are resampled.
group3_tiff_rgba decodes each strip or tile with
craft_stream_codecs::decode_ccitt_raw instead of hayro-ccitt; the error
messages stay as they were. vectorcraft-engine's group3_reference test
keeps the hayro-ccitt reader as the reference: over 190 Group 3 TIFFs and
5,500 cut or edited copies the pixels and refusals match, except that a
strip or tile wider than MAX_CCITT_COLUMNS (2^20) is refused as an
overflow where hayro-ccitt ran out of data. Needs craft-libs#1772.
Outline views left out an Abutting trace's seam fills only while their
clip group kept the name "Seam Fills". Renamed, the group drew its
clipping box and, on a stretched image, the outlines of its filled
seam bands. The group is now also left out when it is still the lowest
traced shape, where the trace puts it.
The outline-view test samples inside the seam band beside the shared
edge on the stretched image, and checks that renaming the group leaves
the view unchanged.
dashes_from drew the cut first dash and a line shorter than the rest of a
dash as one path. The tessellator snaps horizontal and vertical line
segments to pixels but not paths, so those dashes could look softer than
the rest. Each line of them is now its own line segment, as
Shape::dashed_line draws a dash, and a line of no length is skipped.
The test set its first frame to 20 by 16 pt and relied on a fallback face
for the ideographs. With craft-fonts loaded, the CJK fallback face makes
the line with the ideograph taller than the frame, so the frame held only
the "a". The test now uses the characters a, x and space, which the test
font maps, and sets the frame width from their advances.
Object › Plug-ins › Path Precision Tools › Tangent Circle…
(`addon.pathtools.tangentCircle`) draws the circles that touch two
selected paths or compound paths at a set radius, or that touch three of
them. A circle touches a shape when it meets the outline without
crossing it, with the whole outline outside the circle or inside it: at
a smooth point it is tangent there, and at a corner or an open end it
passes through that point. Circles, ellipses at any angle and other
closed or open paths all work; the members of a compound path count as
one outline.
When every shape is a circle, the circles are found in closed form (up
to eight for three circles, the problem of Apollonius) and then moved
onto the drawn Bézier circles, which differ from true circles by up to
0.0273% of the radius. Other shapes are searched on a grid, and the
centers left are refined with Newton's method on the curves. With three
shapes, circles up to 64 times the diagonal of the box around the
shapes' anchors and handles are found.
The circles are listed by radius, then top to bottom, then left to
right. The dialog takes the radius (with two shapes; 36 pt to start)
and previews every circle found or one picked by number; OK draws them
with the current paint as one undo step, selected. No circle, more than
64 circles (shapes touched along a whole curve, such as two concentric
circles), shapes at one point or too small for the radius, more than
2000 segments and a search past its limits are errors that leave the
document unchanged.
The Tangent Circle and Circle: rows are in every catalog, and the
command's messages in the catalogs that translate messages.
Docs: docs/mcp.md (Path Precision Tools add-on),
docs/target-app-parity.md, docs/ui-parity.md and ROADMAP.
Other tests add and remove composite fonts in the shared font database,
which can change the list between the two text.similarFonts calls. The
limited answer is compared whole with the first families of the full one
when FontDb::generation is the same before and after both calls, and by
the installed families when the fonts changed during each of 20 tries.
A Transform effect that makes copies and is listed after a fill's or
stroke's first Transform effect with Transform Patterns or Scale Strokes
& Effects on made its copies without following the raster effects listed
before it, so a Drop Shadow kept its offset on every copy. Each copy now
takes the raster effects before it turned, reflected and scaled with that
copy's map, as the first Transform effect's copies do. Without either
option of its own, it does so only when no raster effect is listed after
it.
text.spelling.check listed at most 10,000 words and always started each
type object at its first byte, so the dialog could not go on inside an
object. With 10,001 unknown words in one object, Ignore ended the check
after the first 10,000. Change All stopped when a round changed nothing,
so a target after 10,000 other unknown words was never reached. Follow-up
to #7744; part of #4936.
- text.spelling.check takes from {id, byte}, which goes on from that
byte of that type object and then the objects after it, and max
(1 to 10,000). The paragraphs before the one that holds from are not
checked again.
- The dialog keeps the words a check lists after the one shown, and
Ignore and Ignore All take the next word from them. A new check goes
on from the last word listed once they run out. Every word is reached,
in a selected group's type too.
- text.spelling.change {to, words} replaces every listed word in one
undo step and lays each object out once. Change All finds every
occurrence with one check after another, then changes them with it.
- Change and Change All to the word shown make no edit and no undo step.
- When another command changes the document or the custom dictionary
while the dialog is open, the next step checks the scope again from
its start. An ignored occurrence stays skipped while the same word is
at the same bytes.
With Smart Guides and Snap to Tangent on, a Line Segment drag pressed
anywhere on a convex closed path with curves and dragged to within the
snapping tolerance of another such path lands on a common tangent of the
two. Both ends move to where the line touches the paths, the start sliding
along the first path. The line is the tangent whose touch point on the
second path is nearest the pointer, so moving the pointer around that path
switches between the outer tangent and the one crossing between the paths.
Each end shows the "tangent" label when Anchor/Path Labels is on, and the
line is drawn as a guide when Alignment Guides is on.
Before this change the start of a Line Segment drag always stayed where it
was pressed. It still does when Shift, Alt or Space is held, when an
anchor, center or crossing lies nearer the pointer than the second path,
when the press snapped to an anchor, center or crossing off the first path,
when Snap to Tangent is off, when Snap to Grid or pixel snapping places
drawn points, or when either path bends inward somewhere or has more than
512 segments.
The tangents come from the Common Tangents geometry. Each pointer move
looks at the 16 nearest closed subpaths within the snapping tolerance and
keeps the tangents of up to 64 pairs for the rest of the drag.
The search field no longer takes the keyboard back while Tab has moved it
to the Recent Commands button, so Enter or Space on the button opens the
list instead of running the highlighted result. While the list is open,
Enter and Space run the row the arrow keys of the same frame moved to,
not the row that had the keyboard in the frame before.
While the Crop Image tool is in use, the image's Control bar shows its
file name, color mode and resolution only, so the tool's PPI, reference
point, X, Y, W and H follow them in a wide window instead of being left
out behind Unembed, Image Trace, Mask, Crop Image and Remove Background.
ui.cropImage's params text now lists the ppi, reference and linked
options and says Apply sends ppi with the rect.
A region whose edge falls inside a pixel no longer drops a slice that overlaps it, and no longer writes a slice that lies past it. The overlap is found in document coordinates, and only that part is converted to pixels.
The convexity check looked at 32 points along each segment, so a cubic
that bends the other way for a short stretch between two of those points
was taken as convex. Each segment is now also checked whole: the cross
product of its first and second derivatives, a quadratic in t, must not
turn against the way the outline turns anywhere on the segment.
The CMYK reader's JPEG side (inks, component count, size, ICC profile)
uses craft_image_codecs::jpeg_inks instead of zune-jpeg, which stays only
as the dev-dependency the comparison test reads with: inks, sizes,
component counts and profiles match it over CMYK, YCCK, RGB and gray
JPEGs, whole and cut off. Frames zune-jpeg panicked on read as no inks.
Needs craft-libs#1779.
The links to the archived help PDFs now open the page with the Show Sample step
(#page=352 in the CS4 help, #page=348 in the CS6 reference) instead of an earlier
page. The comments and docs/mcp.md also say which part's face gives the em box and
ICF box: the part that sets the sample's first Kanji, which is a custom set when one
holds that character.
The Cookie dictionary in a type layer's text engine data uses a key that
the format defines and that names a vendor product. The line now carries
a brand-ok comment, so cargo xtask brands passes.
Graph Type options that leave a graph as it is no longer record a step of
history, so the test's third undo had nothing to take back. The test now
turns on Add Drop Shadow, which redraws the graph and records a step.