Commit Graph
21712 Commits
Author SHA1 Message Date
dotCooCoo c17e7936ef Scripts: the host-name tables list ExternalObject and its members
script_host_vs_scriptcheck failed on this branch because the host now adds the global
ExternalObject. It goes in the table of names that reach outside the document, with the
nativeCode id that script.check gives it; its length, prototype, search, constructor and
terminate members stay inside.
2026-11-22 17:01:22 -08:00
dotCooCoo 9562ed9b04 Preferences: Reset Preferences resets Smart Guides, Snap to Grid and the Contextual Task Bar
The Preferences dialog shows Smart Guides, Snap to Grid and General's Enable
Contextual Task Bar, but the app keeps them with the interface state, and
Reset Preferences left them as they were. Confirming Reset Preferences now
puts their defaults in the dialog with the other defaults: Smart Guides on,
Snap to Grid off, and the task bar as the current workspace was saved. OK
applies them and Cancel keeps the values in use. On a touch screen, where
the reset turns Enable Touch Workspace back on, OK sets the task bar in the
workspace it leaves, and the Touch workspace keeps its own.

prefs.reset (the Command Palette's Reset Preferences), alone or as a
command.batch step, resets them too, each only when it resets every category
or the setting's own (Smart Guides, Guides & Grid, General). With every
category or File Handling it also clears the app chosen for Edit Original, as
the dialog's reset does. The engine records the categories it reset
(Session::take_prefs_resets), and the app resets its own settings from them
after each command, each frame, and before a touch screen switches to the
Touch workspace.

A category that is not a string is now an error instead of a reset of every
category.
2026-11-22 16:56:25 -08:00
dotCooCoo a0cc0230b0 Scripts: an XMP sidecar update flushes the packet first and goes through on volumes without Unix permissions
- closeFile() flushes the temporary file to the disk with vectorcraft_format::sync_file before it
  takes the sidecar's name, as a saved document's temporary file is flushed.
- Keeping the sidecar's permissions is best effort, as in write_atomic: a volume that refuses Unix
  permissions (SMB, FAT) no longer makes every update throw "Script file could not be written".
- docs/mcp.md says both.
2026-11-22 16:52:35 -08:00
dotCooCoo dd303e9df7 Overprint: a white spot ink keeps overprinting with Discard White Overprint on
Discard White Overprint knocked out every white fill, stroke and character
that was set to overprint, including a white linked to a spot swatch such as
an opaque white ink. A white linked to a solid spot swatch at a tint above 0%
is an ink of its own, so it now keeps overprinting; only paper white knocks
out, a 0% tint of a spot swatch included. The rule is in
vectorcraft_doc::overprint (DiscardWhite, is_paper_white) and is used by PDF
export, Overprint Preview, Separations Preview, printed separations, the fills
and strokes of composite print with Overprints set to Simulate, and Print Ink
Fixes' Remove White Overprint.

Overprint Preview and Separations Preview also draw overprinting paper white
characters knocking out while the option is on, as PDF export already wrote
them. EPS export keeps every overprint, as before.
2026-11-22 16:49:45 -08:00
dotCooCoo ece910a3b7 Selection: a Cmd double-click after switching back is the active tool's
A switch from the Selection tool to another tool and back kept the
record of the selection tool Cmd lent the last press, so the Cmd
double-click that followed still went to Direct Selection. The record is
now cleared whenever the active tool changes and whenever the tool
starts afresh (a switch to another document or another view of it).
2026-11-22 16:45:24 -08:00
ncic aea7ae116a Pencil: a redraw stroke in the middle of an open path never closes it (#3793)
A stroke that starts and ends on an open path away from its ends now always
replaces the part between and leaves the path open. Before, a stroke across
the opening (over most of an L, or across a C) could keep the part between
and close the path along the stroke instead. Closing stays where the Pencil
shows the closing cursor: a stroke from one end that finishes on the other.
2026-11-23 01:42:18 +01:00
dotCooCoo 10383f53f3 Merge main into feat/script-grants-list 2026-11-22 16:23:51 -08:00
FredApps 110094fe7e Merge branch 'main' into refactor/metafile-pict-shared
Pin craft-metafile to craft-libs main 8f6ad14b, which includes the
merged PICT reader (storytold/craft-libs#3073), drop the craft-codepage
dependency the removed reader used, and update the PICT detection
comments for version 1 pictures.

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-23 07:20:25 +07:00
5af36bae87 Fix #4568: PDF import keeps embedded fonts for text whose family isn't installed (#4569)
* PDF import: keep embedded fonts for text whose family isn't installed

Glyphs drawn in an embedded font whose family isn't available are gathered
during import and built into one small TrueType font per family and style,
kept with the document (font/ttf blob). Text objects record the fonts and a
hash of their text: layout and rendering draw them in the kept font until the
text is edited (undo restores it) or the family is installed. Lines are
spaced against the file's own widths with per-glyph placement (#3756).

* PDF import: satisfy crate layering constraints without format dev-dep

* FileFont: negate us_win_descent in i32 to prevent overflow on extreme negative descenders

* PDF import: a kept font carries the file font's licence flags, and the docs say what that means

Review of #4569: the fsType of the file's font is copied to the font built from its glyphs (a test pins it against Embedding), so exports honour it; the docs state the limits, that the file's font program is not parsed, and that a saved file carries third-party glyphs.

* PDF import: a glyph curve far outside any glyph is left out; docs say what the limits and the font program mean

CodeRabbit on #4569: coordinates beyond 1e6 font units are refused before the curve is subdivided. The docs say the 64-font limit is what draws one type object and that the file's font program is read only for its licence flags and metrics.

* PDF import: two programs of one font keep the stricter licence flags; the docs cite their sources

CodeRabbit on #4569: embedded programs of one family and style share one built font, which kept the first program's fsType; it now takes the stricter of the two, whichever came first. The docs entry cites the Acrobat Help pages and the OpenType fsType specification.

* fmt

* PDF import: embedded fonts are on by default, with an opt-out preference

Owner decision on #4568. Preferences > File Handling > Use fonts embedded in imported PDFs (pdfImportEmbeddedFonts, on by default) and the embeddedFonts param of document.open and file.place: off, a PDF's type in a font the machine lacks is set in the fallback font with the missing-font warning, as before. One test each for on and off, one for the preference reaching the options.

* fmt after merging main

* docs: restore the status lines damaged by merges (main's line plus this PR's note)

* PDF import: set embedded_fonts through a builder method (keeps read_opened under the complexity limit)

* PDF import: move the missing-font notes out of read_opened (complexity limit after the merge)

* #4569: isolate file-font resources and reclaim live faces (UNVERIFIED)

* Preserve carried-font ownership across placement and recovery

* Fix carried-font regression test dependencies and unwind probe

* Use explicit OS2 heights in owned-font reference regression

* Keep native font regression artwork inside document layers

* fix(engine): bind file fonts when reading document profiles

* test(engine): initialize file-font leases in new image fixtures

* test: complete file-font lease initialization in image fixtures

* docs: keep the #4568 entry in the file-format parity status line

* fix(pdf): keep a line with another glyph for the same character as outlines (review)

A font kept with the document has one glyph per character. A glyph of the file's font that
differs from the one already kept for its character (a stylistic alternate that maps to the same
Unicode scalar) marks its line, which is imported as outlines so each glyph draws as the file
does.

* docs: resolve the leftover status-line conflict

* Placed document blob: give the new ImageBlob literal its file_font

* Test: a PDF's two glyphs for one character survive a native save and reopen as the file draws them

* Test: move the native save and reopen half of the two-glyphs regression to the engine (layers: no format dev-dep in pdf)

* Fix embedded-font preference help and English fallback checks

* Format embedded-font preference help with the workspace edition

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: skylartaylor <hi@skylar.cc>
2026-11-22 18:18:18 -06:00
dotCooCoo eaf1c48e5e Recolor Artwork: reject a library or group that is not a string
ui.recolorDialog, with or without a preset, treated a `library` or
`group` of another type as omitted, so a preset opened with no limit and
OK could recolor the art without the library that was asked for. Both
are now an error that opens no dialog. Null still means none.
2026-11-22 16:13:38 -08:00
dotCooCoo d61d494bea JavaScript: declarations and spread checks stay within the heap and fuel limits
- A function body, after default parameters or plain ones, and eval code
  check the heap for their function declarations and variables after
  their `let` and `const` environment is made, so the estimate stays
  within the limit while the declarations are bound.
- Looking for an index getter before spreading a long array takes a unit
  of fuel for each property it inspects, as well as for each object.
- An index accessor with only a setter no longer delays the check of an
  array of length 4294967295 when spread begins, since reading the
  elements does not run it.
- The eval test with `with` now gives the `with` object an `x`, and the
  function case declares its own `var x`, so a function closing over
  the wrong environment fails it.
2026-11-22 16:09:51 -08:00
FredApps 2ce595e4da Merge remote-tracking branch 'origin/main' into imo778-metafile-unit-facts
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	xtask/src/pdf_deps.rs
2026-11-23 07:03:03 +07:00
dotCooCoo 06d430e4bd Scripts: a replaced XMP sidecar keeps its group and access ACL
closeFile() now replaces a sidecar through vectorcraft_format::keep_permissions, the same step a
saved document takes. On Unix the temporary file takes the sidecar's permission bits, group and (on
Linux) access ACL, or stays readable by its owner alone where the group or the ACL cannot be kept.
Permission bits that cannot be set fail the write, and the sidecar stays as it was. A Linux test
checks that a folder's default ACL does not reach a replaced sidecar.
2026-11-22 16:01:53 -08:00
FredApps cde70af446 metafile: take WMF and EMF unit facts from craft-metafile (craft-libs#778)
Use craft_metafile::unit_facts from craft-libs#3071 for the placeable
frame, metric map-mode scan and EMF calibration; the fallback scales
stay VectorCraft's policy.
2026-11-23 06:58:44 +07:00
FredApps 369b8bfc09 Merge pull request #9014 from Terra854/deps/craft-libs-runlength
deps: pin shared EPS prefix decoders
2026-11-23 06:56:33 +07:00
FredApps e563e271a0 build: pin craft-libs to main 33be356 (craft-libs#778)
Move every craft-libs crate to one rev merged on craft-libs main, so the
metafile unit facts from craft-libs#3071 are available.
2026-11-23 06:55:39 +07:00
dotCooCoo b7c98147e9 Recolor Artwork: find a renamed group's name over its preview
Opening Recolor Artwork on a color group while the open dialog previewed
a rename of that group failed with "no colour group", because the name
was checked against the previewed document before Cancel restored it.
The name is now checked against the document without the replaced
dialog's preview. An unknown group still fails and leaves the open
dialog as it is.
2026-11-22 15:51:43 -08:00
dotCooCoo d2600b0bd9 Plug-ins: a JavaScript manifest opened by path is installed without reading it first
Opening a JavaScript plug-in's .vcplugin by its path now goes straight to
plugin.install {path}, which reads the manifest and its script with the
plug-in loader's limits. The app's file reader no longer reads the whole
file before the plug-in branch. The plugin.install params text is
reworded so that every alternative starts with its parameter name.
2026-11-22 15:39:40 -08:00
dotCooCoo dc9adb195d Scripts: pageItems lists the art inside blends, envelopes, repeats and intertwines
pageItems walked into groups and compound paths only, so the objects inside a blend,
an envelope, a repeat or an intertwine were missing from length, [i], index and
getByName, although each of them reports that container as its parent. The walk now
goes into every container's children.
2026-11-22 15:33:08 -08:00
dotCooCoo 3d460c1697 Scripts: guide, layer, move and addDocument fixes for the object model
- Document.selection and PageItem.selected refuse a path made into a
  guide while Lock Guides is on, instead of passing the check and then
  selecting nothing. The locked artboards are measured once per
  assignment.
- An edit whose command selects the objects it changes puts the current
  layer and the highlighted Layers panel rows back as they were.
  layer.setCurrent takes keepRows, which leaves the highlighted rows as
  they are.
- move on an object on a locked artboard throws Cannot move, as editable
  reads false for it. duplicate, with or without a relative object, on a
  hidden or locked object or an object on a locked artboard throws
  Cannot duplicate and makes no copy.
- When move takes the last path out of a compound path, the empty
  compound path is deleted in the same undo step.
- addDocument writes each warning from reading the profile's file to the
  Script Console as addDocument: <warning>, and a previewMode of
  PixelPreview throws an error that says it is not available yet.
2026-11-22 15:33:08 -08:00
dotCooCoo 828f43447d Undo: a command run during a tool drag is its own undo step
A command run from a panel, a menu or an automation client while a tool
drag was open ran inside the drag. With Real-time Drawing on, the drag's
next move put the document back to where the drag began and dropped the
command's edit, and Escape dropped it too. With Real-time Drawing off,
the release lost what the drag drew or moved.

Such a command now runs on the document without the drag's preview and
records its own undo step and journal entry. The drag then continues
from the command's result: with Real-time Drawing on, its preview is
applied again at once. The release records the drag's step after the
command's, Undo takes back the drag first and the command next, and
Escape cancels only the drag. The drag acts on the objects it started
with, so a selection the command makes does not change what it moves,
and the fill and stroke proxies keep showing those objects' paints.
Objects the command deletes, hides or locks are left out of the drag.
A change the command makes to the current layer or to the new-art paints
stays when the drag ends or is canceled. When the command deletes the
art being dragged, the drag records no step. A warning or an error from
the preview applied again goes to the command's result.

Commands that already kept the drag as a step first still do (Undo,
Redo, command.batch, swatch.renameGroup, edit.newDocumentFromState and
the others that call settle_interaction). Typing in progress is still
kept as a step of its own first. A command run during a Quick Pen press,
object.transform with copy during an Alt-drag, and a command run during
a dialog's or a panel's preview still run inside the interaction.

Docs: docs/mcp.md (undo / redo row), docs/target-app-parity.md.
2026-11-22 15:17:12 -08:00
FredApps 5065041fb1 Merge branch 'main' into deps/craft-libs-runlength
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-23 05:54:55 +07:00
dotCooCoo b16377d223 Canvas: a press in one frame ends at its own release, and a one-frame Animated Zoom drag scrubs
When a frame holds the release of an earlier press, then a new press and
its release, the new press now ends at the release after it: its Up,
the pan or turn of the view, the modifiers, Space and Backtick all come
from that release, and a stroke's moves stop there. Before, they came
from the first release in the frame, which belongs to the earlier press.

With Animated Zoom on, a Zoom tool press that moves more than the scrub
slop and goes up in the same frame now zooms with the pointer about the
press, as it does over several frames, instead of stepping as a click.
Only the moves before the button-up count; a press that stays within
the slop still steps.
2026-11-22 14:24:23 -08:00
Dylan M. Taylor 409d821751 Use the shared EMF and WMF EOF diagnostic (#9125) 2026-11-22 17:21:09 -05:00
FredApps 62ccdea828 Merge branch 'main' into deps/craft-libs-runlength 2026-11-23 05:14:11 +07:00
Terra854andFredApps 76b8839448 SVG: share XML attribute escaping (#9030)
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-23 05:13:39 +07:00
dotCooCoo 03c1c6c70f Plug-ins: written type keeps one paragraph style per paragraph, and API level 2 filters may leave out an image's opacity
- A read-only image entry may leave out `opacity`, which hosts before API
  level 3 don't give, so a level 2 filter that rebuilds an image entry from
  the fields it knows still matches.
- A `text.paragraphs` list returned as it was given next to changed
  `text.runs` is checked against the new paragraphs: a count that no longer
  matches is refused instead of being dropped.
- Written runs hold at most 4,096 paragraphs, the limit for runs and for
  the paragraphs a filter is given.
- A fill or stroke in a written run's style with a key its `type` doesn't
  read (`tintt`) is refused with the `unknown key` error.
- The font family limit counts the name as given, not the trimmed name.
- The run styles of a type object are indexed once per object, not
  compared with every run's style.
- Character styles loaded from another document are skipped when their
  tracking, kerning, rotation, miter limit, dashes, Small Caps or variable
  font axes are out of range, as `charStyle.new` checks them.
- The plug-in command test's Size command adds a square, since an output
  that changes nothing records no undo step.

Docs: docs/plugins.md, docs/mcp.md, plugin.run params text.
2026-11-22 14:09:03 -08:00
dotCooCoo 2894c60473 Scripts: XMP packets are checked as they are read and written, and safe closes use a temporary file
- closeFile with XMPConst.CLOSE_UPDATE_SAFELY passes the flag to xmpWrite, which then writes only
  through a temporary file; where none may be made it throws and leaves the sidecar and the packet
  as they are.
- On Unix the temporary file is created with mode 0600 and takes the sidecar's permission bits
  after the packet is written.
- canPutXMP and putXMP check again that the file is open for update after converting the packet
  argument, since a toString may close it.
- Path arguments are converted once, so a toString that changes between calls cannot mix two
  paths.
- setLocalizedText moves an existing x-default item to the front.
- A second ExternalObject install is refused and keeps the registered namespaces.
- Text beside rdf:Description elements or their properties makes a packet malformed.
- Properties read from a packet share one copy of each namespace URI, and reading stops once the
  properties exceed the script heap.
- A value with qualifiers in the rdf:value form gives the text and options of its rdf:value, and
  an empty property element whose attributes are fields is a structure.
- serialize() and reading refuse a value that would be written with more than 1,024 attributes or
  namespace declarations in scope at one element.
- find_packet treats packet markers inside CDATA sections and comments as text, and passes over a
  packet that is not UTF-8 for the next one. A section that holds a trailer and then a start does
  not hide that start, and each marker search starts where the last one stopped, so the scan
  reads the bytes about once.
- An rdf:Alt item with xml:lang="" has no language, so its array is not a language alternative;
  the empty attribute is written back as it was.
- The rdf:about value counts toward the parse budget, also in a packet with no properties.
- docs/mcp.md says that the prefix limit applies to a namespace being registered.
- The round-trip property test generates valid packets, the retry test closes the same XMPFile
  again after a failed write, and the heap-limit test requires a heap-limit error and a change
  that goes through.
2026-11-22 13:40:36 -08:00
dotCooCoo 3ee68d5aa9 i18n: the message scan skips calls written inside string literals
A marker such as `Err(`, an error variant, a `.map_err` or an error
helper call that appears inside a string literal is text, not code.
The scan matched these anyway, so a source holding
`r##"Err(r#"sample error"#)"##` added "sample error" as a message.
source_messages now finds every string and character literal span
first and drops each match that starts inside one, and a new test
covers the nested raw-string forms beside a real `Err(r#"..."#)` call.
2026-11-22 13:26:47 -08:00
dotCooCoo 744faaab6c Tests: startup script tests remove their temporary folders
`tmp_dir` in `crates/engine/tests/script_startup.rs` now returns
`vectorcraft_testkit::TempDir`, which deletes the folder when the test
ends, also after a failed assertion. Before, every run left its folders
under the system temporary directory.
2026-11-22 13:20:56 -08:00
dotCooCoo fabec2187f History: an Effect Options step names an effect only when every target has it
effect.setParams named its step after the edited effect when the targets
that have an effect at the index all shared one, so with Feather on one
object and no effect on the other the step still recorded Feather. The
step now records the effect only when every target has one at the index
and all are the same. The target that has the effect is still edited.

The i18n menu-label test helper now reads an Effect menu item's label
through menus::effect_item_label, the function the menus draw it with.
2026-11-22 13:09:47 -08:00
ncic 3b668aec46 Pencil: a tall redraw keeps an open line's ends and a thin shape's body (#3793) 2026-11-22 21:59:44 +01:00
dotCooCoo e4768c6eed Clipboard: a failed copy stays replaced, and the menu's Paste into a field takes nothing
Without a change count, a Copy or Cut whose formats could not be
written was kept for as long as the clipboard held the same text as at
the failure. When another app copied other text and later put the
older text back, Paste took the copied art again. The record of the
failed write is now dropped once a different change count, or
different readable text, is seen on the clipboard.

The Edit menu's Paste into a focused text field, after a failed Copy
whose formats have no text, found no text and fell through to the
canvas Paste, which pasted the copied art. The field now gets an empty
paste and takes nothing.
2026-11-22 12:54:43 -08:00
Terra854 eb3a9ba335 Import: share Mac Roman decoding across legacy formats (#9042) 2026-11-23 03:37:59 +07:00
dotCooCoo e37b052028 Print: the PDF fonts note names the fonts drawn as outlines
PDF print embeds subsets only of the fonts whose licenses allow it and
draws the others as outlines. The note that None and Complete add now
says so, as do the Fonts params text, docs/mcp.md and the progress line.
2026-11-22 12:12:38 -08:00
dotCooCoo 14e5fae4ca Docs: Overprint Preview's white canvas applies while the artboards show
The ui-parity row, the Views evidence line and docs/mcp.md now state the
condition that white_canvas() checks: the canvas around the artboards is
white in Overprint Preview and Separations Preview while the artboards
show.
2026-11-22 12:03:06 -08:00
dotCooCoo 989aa08f16 Plug-ins: a failed removal keeps settings, and the key store reconnects
- plugin.remove deletes the stored module of a plug-in that isn't
  installed while its settings and cache are still moved aside, so a
  module that can't be deleted leaves them in place for the next try.
- plugin.remove of an invalid id no longer raises the grants generation.
- The size check before a signed grants write uses the generation the
  file is written at, so a file that fits the 1 MiB limit is kept.
- The system key store connection is dropped when the key store can't
  be reached through it or fails, and the next call connects again; a
  missing entry keeps the connection.
2026-11-22 11:58:30 -08:00
dotCooCoo f7a5e3991d Print: type left out for the page limit sends none of its glyphs
When an object passes the page body limit, the walk takes its body,
image placements and image codes back out. The glyphs it showed through
the job's fonts stayed in the page's font list, so Subset sent fonts for
type that was not printed, and Complete could send whole fonts for a face
no printed object uses. The walk now records the glyphs each object adds
and takes them back out with the rest.

Tests: the glyphs of an object left out for the limit are not in the
page's font list, and ruby readings print as outlines in place while the
base text shows through the font.
2026-11-22 11:52:43 -08:00
dotCooCoo 2e9040d01b Canvas: a press moved and released in one frame drags the tool
A tool press that moves and goes up in the same frame now gets a Drag at
the release position before its Up, as a held press does, so the
Rectangle tool draws the rectangle instead of opening its dialog at the
press point. A press that does not move stays a click.

- A tool that builds a stroke from the drag's samples gets the frame's
  moves between the press and the button-up, not the hover moves before
  the press.
- The Zoom tool's marquee for such a press reads only the frame's events
  between the press and the button-up, with Space as it was at the
  press: Space and moves after the release no longer shift it.
- The press starts its gesture, and its Down goes, with the modifiers,
  Space and Backtick held at the press, not those held at the end of the
  frame. Space held at the press and let go before the release pans.
- A pan or a turn of the view pressed and released in one frame follows
  the pointer to the release, and Shift held at the release snaps the
  turn.
2026-11-22 11:50:42 -08:00
dotCooCoo ec3fe96195 Recolor Artwork: roll back the replaced preview before reading the group
Opening Recolor Artwork on a color group over its own preview of that
group read the group's colors before the preview was rolled back, so the
new dialog started on the previewed colors and OK could apply them again.
The replaced dialog now ends first, after the parameters are checked, and
the group is read from the restored document.
2026-11-22 11:46:52 -08:00
dotCooCoo 7a96c6c091 Scripts: XMP packet scanning needs the wrapper id, and failed alt-text sets add nothing
- A packet starts at a <?xpacket begin= whose header holds the wrapper
  id W5M0MpCehiHzreSzNTczkc9d within 256 bytes, so the same text inside
  a value, such as in a CDATA section, does not restart the scan.
- setLocalizedText adds a new array in the same change that sets its
  item, so a call that stops at the heap limit leaves no empty array.
- The 15 XMP error messages are English only; their translations are
  left to storytold/craft-i18n, as AGENTS.md asks of feature pull
  requests.

Tests: packets_are_found_in_file_bytes and
localized_text_past_the_heap_limit_adds_no_array in
crates/js/src/xmp_tests.rs. Docs: docs/mcp.md.
2026-11-22 11:44:03 -08:00
dotCooCoo 6327295d28 EPS: white fills and strokes knock out with Discard White Overprint
PDF export lets a fill or stroke marked to overprint do so only when it
is not white with Discard White Overprint in Output (Document Setup, on
by default). EPS export and composite PostScript printing ignored that
setting, so an overprinting white fill or stroke was written with
"true op" and the inks below it stayed visible. They now apply the same
rule to path fills and strokes, character fills and type object fills.

The tiles of an overprinting pattern fill overprint with it, as in PDF
export. Before, a tile marked to overprint wrote its own "true op" and
"false op", which turned overprinting off for the tiles after it.
Separated plates are not checked for white, since their colors are
already the plate's coverage.

Re-exporting or printing to PostScript a document with an overprinting
white fill or stroke gives different output: the white knocks out
instead of overprinting, unless Discard White Overprint in Output is off.
2026-11-22 11:39:17 -08:00
dotCooCoo 23b6184c5b Recolor with Preset: reject a color group
ui.recolorDialog with preset: true and a group opened the preset dialog
and dropped the group, so OK recolored the art without rewriting the
group. That call is now an error. The params text and
docs/control-protocol.md say so.
2026-11-22 11:31:42 -08:00
dotCooCoo 977e896fd0 Plug-ins: File › Place keeps a named importer and its params for every file
- file.place with `importer` and `params` and `paths`, or with no file,
  opened the Place dialog with only the files, so its OK read them with the
  built-in reader. Each dialog entry now carries the importer and its
  params, from the paths given, the desktop pick and the web pick, and OK
  passes them to file.place and file.place.queue.
- On the web, each picked file carries its own pick's importer and params.
  Picked files with other ones, or that arrive while a Place dialog is open,
  wait for the next dialog.
- The Place dialog does not read the start of a PDF, .ai, EPS or PostScript
  file placed with an importer named to tell whether Link would place it as
  a document.
- A path placed or opened with `importer` named is refused from its size
  before any of it is read. Before, its first 64 KiB were read first.
- docs/plugins.md and docs/mcp.md say when the size check runs, that the
  web's File › Place reads the picked file in the browser, that File ›
  Place's filters leave out extensions a built-in format reads, and that a
  dropped file a built-in format reads goes to that format.
2026-11-22 11:31:23 -08:00
dotCooCoo d73d0c0f9b JavaScript: a yield reserves only the heap its saved frame takes
A yield reserved room for every finally entry on the interpreter, those
of the frames under the generator's included, and for the result it
hands back, while the saved frame keeps only its own operands and
entries. Under deep callers in finally blocks a yield could stop at the
heap limit with enough room for its frame. It now reserves what the
saved frame keeps.

The tests check the value a throw raises in a generator that has not
started, and the fuel each call of a completed generator's next takes
against a native method that takes none.

docs/mcp.md and docs/target-app-parity.md say that an engine a .js
script makes has Symbol and the iterators, and that one a .jsx script or
a source string makes does not. The parity entry no longer says that
spread is missing or that scripts call next() themselves.
2026-11-22 11:27:41 -08:00
dotCooCoo 1de14d2bdd Display Print Size: a floating window keeps its settled fit while a modal is open
A floating OS window whose view fits it and whose display changed
density while a dialog or other modal was open settled its zoom, but the
window kept the fit from before the change, so the next resize did not
fit the view again. The window now keeps the settled zoom and center as
its fit while a modal blocks it too.
2026-11-22 11:23:44 -08:00
dotCooCoo 787af19dfe Scripts: XMP item paths take no options, and alt-text needs a language on each item
- setProperty with an array item path, such as list[1], and any
  option throws that the value is not available yet instead of setting
  the item and leaving the option out.
- getLocalizedText and setLocalizedText throw that the array is not a
  language alternative array for an rdf:Alt with an item that has no
  xml:lang.

Tests: bad_arguments_and_unbuilt_members_throw in
crates/js/src/xmp_tests.rs.
2026-11-22 11:15:46 -08:00
ruchirguitar 2cc47a707e vectorcraft-metafile: format picture.rs 2026-11-23 00:44:19 +05:30
dotCooCoo da5344af2c Recolor with Preset: test that grays of different lightness get different tints
The 1 Color Job test now requires a strictly higher tint on the darker of
two grays for a linked ink, and different colors for a process swatch, so
a flat tint fails it. docs/ui-parity.md gets a Recolor with Preset item
and the M3 row in docs/roadmap.md names the preset flow.
2026-11-22 11:14:02 -08:00
dotCooCoo 185d79b820 Swatch libraries: only a numbered pattern swatch keeps its free library name
A library pattern swatch named after its pattern took the library
swatch's name whenever the document did not use it, even when its
pattern came in under another name. For an unnumbered name this changed
the existing result: adding a library "Tiles" to a document that has
another pattern "Tiles" without a swatch named the swatch "Tiles" while
it paints "Tiles 2". Only a numbered name, which the reservation keeps
for the library swatch, is now kept that way; an unnumbered one is named
after the pattern that comes in, as before.

docs/mcp.md is rewrapped where two lines were broken mid-paragraph, and
the progress line puts the Use Library Item sentence before the rules
that apply only to Add to Swatches.
2026-11-22 11:13:43 -08:00