WebP had no embedIcc option, and its encoder never attached a profile,
so no WebP file carried one. WebP now takes embedIcc like JPEG, TIFF and
PSD, on by default: the file becomes an extended (VP8X) file holding the
sRGB profile in an ICCP chunk, lossless or lossy. embedIcc: false writes
the plain file as before.
- document.export and Export for Screens' settings.webp take embedIcc,
and document.formats lists it for WebP.
- WebP Options (Export As and Export for Screens' Format Settings) gets
an Embed ICC Profile checkbox.
- Docs: docs/mcp.md and docs/file-format-parity.md.
Drawing templates (.dwt) and drawing standards files (.dws) are DWG
files, but File > Open and File > Place did not list or read them.
- Both extensions are in the open and place dialogs and go through the
DXF Import Options after the drawing is converted, as a .dwg does.
- A .dws file is read as format `dwg`. A .dwt file is format `dwt` and
opens as a new untitled document, as a .cdt template does.
- The format is found from the content; a DXF named .dwt stays a DXF.
- Exporting to dws or dwt says to export DXF instead.
Docs: docs/mcp.md, docs/target-app-parity.md.
The 29 catalogs in crates/ui-egui/src/i18n were embedded with include_str!,
21,861,200 bytes of text in every build. build.rs now compresses each
*.tsv with Brotli (quality 9, 4 MiB window) into OUT_DIR, and the
interface unpacks them when it first needs its catalogs and hands them to
I18n::from_owned. The embedded catalogs take 5,316,158 bytes.
- build.rs finds the catalogs in the folder, so adding a language is
adding its .tsv. A catalog over 8 MiB, or one it can't read, stops the
build.
- A catalog that does not unpack to exactly its recorded length of UTF-8
is left out and logged, and its language is not offered.
- On the desktop the catalogs are unpacked on several threads.
Paste on Windows never read the enhanced metafile that CAD and office
apps put on the clipboard as vector art: windows_formats had no entry for
EMF, so the app pasted their bitmap instead, or nothing. The Windows
clipboard holds an EMF as a handle (CF_ENHMETAFILE, which Windows also
makes from CF_METAFILEPICT), so the app now copies its records with
GetEnhMetaFileBits, at most 64 MiB, and pastes them through
clipboard.importEmf.
A .dxf, .dwg or HP-GL plot file copied in a file manager did not paste,
because file_flavour had no flavour for them, though Open and Place read
all three. They now paste as image/vnd.dxf, image/vnd.dwg and
application/vnd.hp-hpgl through the new command clipboard.importCad
{dataBase64, format: dxf|dwg|hpgl, center?}, read as document.open reads
the file. A file pastes this way only when its bytes are the format, so
a chart script named .plt is not taken for a plot.
Fixes#10819.
A smoothed polygon mesh drops its spline-frame vertices before building the
grid, so only groups 73 and 74 describe the vertices that are left. When those
counts did not fit, the importer fell back to the frame's M and N, and a frame
whose vertex count happened to match laid the surface vertices out on the
wrong grid. The mesh is now left out with the missing-vertices warning.
docs/mcp.md now says that a UI-only tool returns the window-required
message in a headless session, including one the closed-app choice
started, and returns the window lookup, launch or authentication error
otherwise.
docs/mcp.md now says which composite fonts file.place and links.embed
bring with editable art, when a placed font keeps its name, reuses an
equal one or takes a free name, and quotes the errors that stop the
placement before either document changes.
Plain `vectorcraft-cli mcp` checked for the window with `has_ui`, which
turns a failed launch or handshake into "no window". A UI-only tool
(`inspect_ui`, `type_text`, `answer_dialog`, `open_panel`, a window
screenshot) then said it needs the open window, even when the window was
open and the connection to it was what failed. `Backend::ui` now returns
that error, and the UI-only tools report it.
Polyface mesh and polygon mesh POLYLINEs were dropped with a warning.
They now come in as one path each, their height dropped:
- A polyface mesh draws each face's visible edges. A face with every
edge visible is a closed outline; an edge whose vertex number is
negative is left out. A face that names a vertex the mesh doesn't
have is left out with a warning.
- A polygon mesh draws its M and N lines, closed when the mesh is
closed in M or N. A smoothed mesh draws its surface vertices
(groups 73 and 74), not its frame. A mesh whose vertices don't fill
its grid is left out with a warning.
- 3DFACE leaves out the edges its group 70 hides, as polyface faces do.
Docs: docs/mcp.md (DXF import).
ui.dialog.set with fields and action "confirm" sets choice (and
applyToAll) and confirms the same Save Changes question in one request,
so no other dialog is answered between the two. The control-protocol row
now gives that form beside the two-request one, and the Save Changes test
checks the line and sends both one-request forms through the control
handler.
The canvas markers stay as they are when the caller's read folders do
not cover the same files as the document's, or when a script command
makes the call. The links.marked help text, docs/mcp.md and the
progress-doc line now say both, in place of "read folders differ".