* Images: decode TIFF screen and link proxies at a reduced size (#2381)
Stream placed TIFFs a strip or tile row at a time through
craft_image_codecs::TiffBands into 1/2, 1/4 or 1/8 RGBA buffers (512 MiB
per band, 1 GiB reduced output) with alpha-weighted box averaging and
embedded ICC / working-CMYK display conversion.
Wire reduced TIFF sizes and estimates into designcraft-render's screen
mip cache (clamping oversized rasters to reduced levels when zooming in
so decode_full does not poison the cache entry) and linked-file proxy
generation.
* Images: round up in finest_level and cover 512 MiB single-strip cap (#2381)
Match the reduced decoder's round-up dimensions (`div_ceil(2)`) when
selecting `finest_level` so odd oversized widths such as 131071x128 pick
a level whose decoded buffer fits `Pixmap` and the 1 GiB RGBA cap before
cropping.
Replace the truncated header-only single-strip assertion with a complete
zlib-compressed single-strip CMYK TIFF above the 512 MiB band limit.
* Images: count orientation/float/Lab in reduced TIFF estimate and lighten tests (#2381)
* Images: include partial-cell map bound in reduced TIFF peak estimate (#2381)
---------
Co-authored-by: TS-Ca <[email protected]>
* mcp: cut over JSON-RPC/MCP framing to craft-mcp-server
* mcp: set tool_errors_as_results for transcript parity
* mcp: preserve stdio and resource errors and synchronize lockfile
* Dependencies: take craft-libs main at 3af718585c
Every craft-libs dependency and patch in Cargo.toml now uses one
revision, craft-libs main at 3af718585c60d8e9bab05c241d7a28282c61f85c.
Cargo.lock changes only craft-libs packages.
The newer crates need these changes:
- craft-xml is at one revision, so the craft-xml-dtd alias is removed
and the DTD adapter uses craft_xml::dtd.
- craft-svg's gradient paint carries its stops and its pattern paint
carries its tile. Paste uses the first stop's color as before, and
skips embedded image nodes, which the scene still counts for the
paste warning.
- craft_svg::sniff::viewbox_size came from a craft-libs commit that is
not in main. The IDML importer keeps the same bounded viewBox sizing
as a local function and no longer depends on craft-svg.
- craft-svg's Limits has tree_depth, the depth after references such as
<use> are followed. Images set it to MAX_SVG_DEPTH, and a test checks
that a long <use> chain is refused.
- craft-ui adds the flyout width and top layout actions, which the
iconic dock sends when a flyout's side or top edge is dragged.
window.panel.layout rejected every action it did not list, so both
are now checked like the other per-panel actions. A test checks that
they are kept for a registered panel and refused for an unknown one.
* Panels: a group docked back keeps its flyout's width and top
craft-ui at 3af718585c saves a dock group's flyout width and top when the
group floats and restores them in its own restore path. Dock Panel for a
group that floated as a whole goes through DesignCraft's own path, which
replayed the height, minimized state and column but not the two flyout
values, so a widened or moved flyout came back at its default size and
place. The path now replays ResizeFlyoutWidth and MoveFlyoutTop with the
other saved state.
The images test's doc comment gives the nesting depth of its `<use>`
chain as four levels, counting the root as one.
* PDF: pdf-deps expects craft-libs 3af718585c
`cargo xtask pdf-deps` checks that craft-pdf, Krilla and the Hayro
crates resolve to one craft-libs revision named in xtask. The workspace
now takes them at 3af718585c, so the check expects that revision, and
docs/pdf-backend.md names it.
* IDML: a placed SVG with a byte order mark keeps its viewBox size
The importer's viewBox sizing looked for `<` as the first byte, so a
linked viewBox-only SVG that starts with a UTF-8 byte order mark was
placed at its GraphicBounds instead of its viewBox size. The mark is now
skipped first.
* Tests: the discarded-pass input test clears its texture changes
discarded_pass_does_not_acknowledge_injected_input dropped its frame
output without clearing textures_delta, so epaint panicked on drop
whenever the frame carried a texture change. With craft-ui at
3af718585c it failed in 2 of 3 full ui-egui test runs. The test now
clears it, as the tests around it do.
* Dependencies: take craft-libs crates from craft-libs main at 453b0da782
Every craft-libs git dependency and [patch.crates-io] entry moves from
3af718585c to 453b0da782, and xtask pdf-deps and docs/pdf-backend.md
name the new commit.
Cargo.lock changes only the source revision of the 50 craft-libs
packages; no package is added or removed and no registry package
changes version.
craft-update now inspects a release the app offers on a thread of its
own (storytold/craft-libs#1149), so the prompt opens at a later tick
instead of inside offer. updates_ui's startup_prompt_shows_and_closes
waits for that answer: it ticks on each immediate repaint request the
offer's thread makes until the prompt is open.
* Updates: the startup prompt test fails instead of waiting forever
offer_and_wait waits for the one immediate repaint the offer's thread
requests after it answers, ticks once, and then asserts that the prompt
is open. Before, it waited for a repaint after every tick, so an offer
that ended without a prompt (the launcher pinning the app while the
files were read) blocked the test instead of failing it.
NOTICE names craft-libs 453b0da782 as the source of the patched Hayro
crates, the revision Cargo.toml fetches them at, adds hayro-postscript,
which is patched from the same revision, and names the PdfCraft
revision the snapshots were re-synced to.
* IDML: a placed SVG's viewBox size comes from its root tag alone
svg_viewbox_size reads only the root's start tag instead of parsing the
whole file, so placing the same large linked SVG many times no longer
parses it each time. Files over 16 MiB still give no size. A viewBox
with a value that is not a number, such as "0 0 junk 200 100", now
gives no size, so the frame's GraphicBounds size the graphic; before,
the bad value was dropped and the other numbers were read as the
viewBox.
* IDML: a placed SVG's root tag is read with craft-xml's first_start
svg_viewbox_size reads the root's start tag with Options::first_start and a
pattern that matches any name, in place of its own event loop. A file whose
root is not an svg element still gives no viewBox size; the placement test has
a case for it.
* Cargo: drop the unused craft-xml-dtd alias again
The merge of main kept the craft-xml-dtd alias at craft-libs a5ac3aa05c, which this branch had removed. No crate uses it, and Cargo.lock does not change.
* chore: resolve shared BMP dependency pin with Cargo [skip ci]
* test(color): align FOGRA39 references and isolate no-BPC accuracy [skip ci]
---------
Co-authored-by: Codex <[email protected]>
* test(images): fit 1-component progressive JPEG test under 512 MiB decoder budget
* test(render): update reduced JPEG peak estimate to 16 B/px for craft_jpeg
The merge of main kept the craft-xml-dtd alias at craft-libs a5ac3aa05c, which this branch had removed. No crate uses it, and Cargo.lock does not change.
Preserve Josef Mlčůch’s PSD placement work and tests while adapting resource lookup to the current shared zero-copy HeadView and ResolutionInfo. Keep current main decoding and sanity limits.
View › Story Editor › Show/Hide Style Name Column shows or hides the
column of paragraph style names. The column width can be dragged
between 40 and 400 points, and the bar follows the pointer back from
those limits. The setting is remembered.
A whitespace-delimited token that carries Hangul, kana or Han, or that
reads as an address, is not hyphenated by English rules. Breaking at a
hyphen the author typed is still allowed. The ligature / visible-source
follow-up is in #2196 and #2197.
Fixes#1688.
A cross-reference's PDF link annotation covers the text it generated,
not only the first letter of the marker. List labels and decorative
zero-length glyphs are left out of the rectangle, and clickable spans
are split around unselected visual text.
Related to #1446.
ink.separations accepts 9-300 dpi, but craft-prepress renders each plate within 4 megapixels, so a page larger than A5 at 300 dpi was separated at less with an empty warnings list. separate() now adds a warning naming the resolution used and the one asked for, and the command's params text says the resolution is lowered to fit 4 megapixels per plate.
Document tabs that overflow the bar scroll (trackpad, wheel, or arrows), keep the active tab in view, and list every open document in a menu.
Fixes#2358.
`name` ID 6 names a variable font's default instance, so every instance
was previously embedded under that same name. A named instance's
PostScript name is now built as Adobe TN #5902 prescribes.
Related to #1690.
Refuse UNC, device and non-disk verbatim paths in automation roots by their form, before any file-system lookup, and judge each symlink from its own text. This closes the NTLM/WebDAV leak where canonicalize was asked about a path first.
Adds Cell Options › Diagonal Lines so cells can be drawn with diagonal lines. The dialog applies only to the cells and document it opened for, and PowerPoint export writes the diagonals as cell borders. Includes Swedish catalog rows for the new strings.
For a catalog-only variable family, named instances are discovered before the Font Style combo and the Family menu list their styles, so the first opening is complete. Styles are cached once per popup opening. Synthetic fvar regressions run by default.
Related to #1210.
svg_viewbox_size reads the root's start tag with Options::first_start and a
pattern that matches any name, in place of its own event loop. A file whose
root is not an svg element still gives no viewBox size; the placement test has
a case for it.
Create Outlines built each glyph's outline as horizontal text does. In a
vertical frame the canvas and the PDF export also turn each upright glyph
(PlacedGlyph::vertical_xf), and a frame of several columns put each line in a
group whose children had no transform, losing the frame's quarter turn. CJK
glyphs lay on their sides and the columns became rows.
Each upright glyph now takes its turn, as the renderer applies it, and each
line in the group takes the frame's text turn (Document::text_local).
Fixes#2895
svg_viewbox_size reads only the root's start tag instead of parsing the
whole file, so placing the same large linked SVG many times no longer
parses it each time. Files over 16 MiB still give no size. A viewBox
with a value that is not a number, such as "0 0 junk 200 100", now
gives no size, so the frame's GraphicBounds size the graphic; before,
the bad value was dropped and the other numbers were read as the
viewBox.
offer_and_wait waits for the one immediate repaint the offer's thread
requests after it answers, ticks once, and then asserts that the prompt
is open. Before, it waited for a repaint after every tick, so an offer
that ended without a prompt (the launcher pinning the app while the
files were read) blocked the test instead of failing it.
NOTICE names craft-libs 453b0da782 as the source of the patched Hayro
crates, the revision Cargo.toml fetches them at, adds hayro-postscript,
which is patched from the same revision, and names the PdfCraft
revision the snapshots were re-synced to.