Match a stroke to a filled glyph by its whole placement (origin, size,
horizontal scale, slant and direction), not just its origin, so a stroke
drawn at another size over a filled word stays type of its own. Restyle
only the matched glyphs' text instead of the rest of their run: strokes
over neighbouring glyphs gather and restyle once, so a word filled and
stroked whole stays one run, while a stroke over one glyph of a filled
word strokes that glyph alone.
In a legacy .ai gradient definition, each color stop holds only its
color, midpoint and ramp point, and VectorCraft's reader opens such a
gradient as a Classic gradient. A Perceptual gradient was written with
its own stops, so the file opened with different colors between them
and no warning.
The writer now treats a Perceptual gradient as it treats a gradient
mixed around the hue wheel: the colors on its curve become stops of
their own in process colors, at most 256, in a definition of their own,
with a warning that names Perceptual gradients.
A font's SVG table can keep many glyphs in one document. Each glyph's art
was read by handing the importer the whole document, with every other
glyph moved into defs. The importer now gets the glyph's element and only
what it refers to: elements named by its effective link (plain href, else
xlink:href) or by url(#id) in attributes, style attributes and sheets,
what those refer to in turn, the start and end tags of the elements
holding them, and every <style> sheet. A document whose references or
sheets cannot be followed this way (a DTD, xml:base, an id used twice, a
missing or escaped reference, a link to another file, a sheet with
sibling, attribute or pseudo-class selectors or at-rules) is read whole,
as before. Each element is queued at most once.
The color check now runs on the reduced text, so a glyph with fixed
colors no longer counts as using the text's color because another glyph
of its document uses currentColor. A glyph nested under an element that
gives a namespace prefix (or the default namespace) another URI than the
root does keeps its own after it is lifted out.
For 50 glyphs of a 2,000-glyph document (278 KB), thread CPU time went
from 547 ms to 113 ms (medians of 9 runs, the two paths alternating in
one process).
optical_kerning_keeps_the_tsume_of_a_letter_with_coloured_harakat also
runs on an installed Arabic face. In macOS's Arial (5.01.2x) the initial
beh and its fatha fill their whole cell, so Tsume rightly takes nothing,
but the test required it to move something. The installed-face check now
measures each cluster's blank space first: with some, Tsume must move the
glyphs; with none, it must move nothing. The test font stays strict.
Embedded and linked images read their pixels with decode_within: the
size from the header against the allowance first (as samples and as
RGBA, #1717), then the pixels as stored. map_rgb, sampling, coverage,
link previews and checked_with_pixels all go through it.
decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP,
TIFF and BMP at each depth the image crate writes with its pixels, and
JPEG within two steps, including the pixels checked_with_pixels hands
on. The 11,586² allowance test is a compact PNG; craft-image-codecs
refuses a GIF whose unbacked logical screen is past 256 MiB.
Search Commands… moves from the middle of the Help menu to the top,
with a separator after it. It runs the same help.commandPalette
command and shows its shortcut. In the native macOS menu bar it is
the first item below the system's search field.
Escape with a gradient stop's or Brush Options' Key Color eyedropper
armed now ends the pick without sampling and switches back to the tool
that armed it. The stop keeps its color. With Brush Options open, the
first Escape ends only the pick and the dialog stays open with its Key
Color; a new Escape cancels the dialog as before. The plain Eyedropper
keeps its Escape behavior, and a dropped touch leaves an armed pick
waiting for its click.
Fixes#8024
Crop Image's ppi, reference and linked and the shape tools' anchors
reached main after the option checks were written, so tool.setOption
refused them as unknown. Crop Image now checks them with the ranges
check_options uses (the selected image's ppi limit stays in
tool.setOption), and the shape tools take anchors from 2 to 1000 and
refuse other counts, which the Ellipse dialog test now expects.
The test that every tool takes back the options it reports now also
covers the Crop Image and Intertwine tools, which the tool catalog does
not list.
With text rendering modes 2 and 6 the reader fills every glyph of a
text-showing operator before stroking them, but the importer only joined
a stroke to the glyph filled last, so a word shown in one Tj came in as
a stroke-only Type over a fill-only one. TextLine now records the glyphs
it fills and stroke_filled matches each stroke to its filled glyph in
order, splitting a run where the stroke differs.
With three or more circles and no pair that can be bridged, the error
suggested a larger radius or gap when the largest one bridged a single
pair on its own, even when that pair's neck was still too thin to unite
among the other circles. The suggestion now uses the same rules as the
many-circle bridge (`bridges_any` in `vectorcraft-pathops`).
The command's params text, `docs/mcp.md` and `docs/ui-parity.md` now say
that a pair within reach also gets no bridge when its neck would be
thinner than the precision its shape is united at.
The bridge module defined a second Circle with the same fields and derives as tangent_circle::Circle, and pathtools re-exported the tangent one as TangentCircle. The bridge now imports the existing type, pt::Circle names it again as on main, and the tangent circle command's annotation is back to pt::Circle.
path.eraseSegments checked only that `width` was a positive number, so a
width such as 1e300 erased every selected path and a width such as 1e-300
sampled the path too coarsely to find the band. It now refuses a width
outside 0.001 to 1000 pt with "`width` must be from 0.001 to 1000" before
reading the document; nothing changes and no undo step is recorded. Left
out or null, the width is still 8 pt. The range is VectorCraft's own: it
holds every width the Path Eraser tool sends across the view zoom and UI
Scaling limits, and its top matches the Eraser's largest Size.
Use Monitor Profile for Canvas reads the display's profile every 10
seconds and when the window moves to another display. The new command
view.refreshMonitorProfile (Edit › Refresh Monitor Profile, after Assign
Profile…) makes the next frame read it at once, past both the 10-second
reading and the 1-second display check. A request made while a reading
runs waits for that reading to end and then starts.
The command returns {requested: true} before the profile is read, and
ui.inspect's displayProfile reports readRequested while the request
waits. It is off and returns an error while the preference is off
(nothing is queued) and where nothing reads the display's profile (the
web build). It changes no document, proof setting or preference.
The reading thread now clears its busy flag before it asks for a
repaint, and it also asks for one when a request is pending.
The search orders results by how the whole query matches before the word
grades, so "scale" lists Scalers, whose name starts with the query, above
Scaling. The progress line now says the stem rule applies among results in
the same whole-query tier, and a test pins both orders.
The test of Effect menu results reads the results and the Effect menu items
within one plug-in revision, so a live-effect plug-in that another test
installs between the two reads no longer fails it.
The decoding File › Open, Place and the renderer share moves to
vectorcraft-doc (decode.rs: decode_image, decoded_layout), and SVG
import's images read through it: the size from the header against the
allowance first, then the pixels as stored with the profile the file
embeds (a TIFF's still read by the TIFF reader).
decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP,
TIFF and BMP at each depth the image crate writes with its pixels, and
JPEG within two steps.
The raster path tells formats with craft-image-codecs' detect, reads the
size from the header (vectorcraft-doc's header_size, the renderer's
decoded_layout, a Targa's own header) and decodes with the renderer's
decode_image, the pixels as stored, with the profile the file embeds.
The size notes Open, Place and the Links panel give, and Glass's Load
Texture, read the same way.
opened_rasters_are_the_pixels_the_image_crate_read compares BMP, TGA and
TIFF at 8 and 16 bits, gray and color, with and without alpha, with the
image crate's pixels, and PNG, JPEG, GIF and WebP stored as they are.
A query word in an English plural or verb form now meets the base word
of a result's English name or menu path: "rounded corners" lists Round
Corners… first, "scaling" finds Scale…, "rasterizes" finds Rasterize…
and "added anchor points" finds Add Anchor Points.
The index stores up to two stem forms per English word, and a query
word's stem forms are looked up exactly:
- 's is dropped, and sses becomes ss.
- es after s, x, z, ch or sh is dropped, and the word with only its s
dropped is a second form.
- A final s is dropped in words of more than 3 letters, except after
ss, us or is.
- ies becomes y or ie in words of more than 5 letters.
- ing (more than 5 letters) and ed (more than 4) are dropped. A doubled
b, d, g, m, n, p, r or t left before them gives the single and the
doubled letter, the single one only when at least 3 letters are left;
otherwise the rest with an e added is the second form.
- series and species are left as they are.
A result whose name holds the base word of a query word ranks below one
that holds the query word whole and above one where the query word only
starts a word of the name, so "scale" now lists a name with Scaling
above one with Scalers. A partly typed word that is not itself a word
of any result ("scal") does not meet a stem form. The grades of the
other matches keep their order and their sums, so results matched
without a stem keep their order. Names shown in other languages and ids
are not stemmed, and the words as written stay in the index, so every
result found before is still found.