DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Merge PR #588
Brandon Thomasaf45138718ac
diff --cc ROADMAP.mdindex 8b51f9f00,9156b1968..5b80ec5c7--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -216,11 -153,8 +216,12 @@@ Newest first- **2026-10-12** · The Effects panel shows the level its settings apply to ("Group: Color Dodge 100%") and, as in InDesign, Isolate Blending and Knockout Group for a selected group. No readiness percentage change.- **2026-10-11** · Properties gains InDesign's Pathfinder section (Add, Subtract, Intersect, Exclude Overlap, Minus Back) with several objects selected; section titles and icon buttons have accessible names. No readiness percentage change.- **2026-10-12** · The Eyedropper samples a placed image: clicking the photo with text (or objects) selected fills them with the image's colour under the pointer, as an unnamed colour (`color.sample`), as in InDesign. Images on locked layers can be sampled. No readiness percentage change.+- **2026-10-12** · The section marker character shows its section's marker text on document pages (nothing when the section has none) instead of the word "Section", which stays on parent pages; editing the marker recomposes (#556). No readiness percentage change.+- **2026-10-12** · On screen, blend modes blend with the objects below and not with the paper, as in InDesign and in PDF export: a Color Dodge or Screen object over blank paper shows as it is. No readiness percentage change.+- **2026-10-12** · A gradient feather on a group fades the group as one, on screen and in PDF. Before, the screen ignored it, and PDF masked the group with a box of zero size because a group has no path of its own. No readiness percentage change.+ - **2026-10-12** · In a CMYK transparency blend space (print documents), blend modes blend in CMYK on screen as in InDesign. Color Dodge with 100% K text turns coloured areas under it white and leaves the paper alone, where RGB blending changed almost nothing. PDF export already did this. No readiness percentage change.- **2026-10-12** · Words in capitals hyphenate like capitalized words (FERRUM COM-MODI), as in InDesign; Hyphenate Capitalized Words off keeps them whole. No readiness percentage change.+- **2026-10-12** · Load Swatches refuses an `.ase` file with more than 100,000 colors, and `swatch.load` merges a file of 100,000 colors in under 0.1 s (it took 9.6 s of CPU in a test build). No readiness percentage change.- **2026-10-11** · `transform.move {copy}`, Edit › Duplicate and Step and Repeat return the copies' ids, so a script can go on with them. No readiness percentage change.- **2026-10-11** · `object.fill` and `object.stroke` refuse a swatch name the document doesn't have (it painted nothing) and suggest the name meant (`Paper` → `[Paper]`). No readiness percentage change.- **2026-10-11 (printing):** `file.printers` and `file.print` use craft-libs/craft-print for CUPS and Windows. DesignCraft retains PDF export, page selection, spreads, marks and bleed; dry runs create no temporary PDF or print job. Windows selects matching or default driver paper and shrinks oversized sheets without enlarging smaller ones; queue duplex defaults are preserved. Headless tests exercise exported bytes, job settings, dry runs and refusals; shared native Windows CI passes, including paused-queue submission and cleanup. PostScript, production print controls and physical output validation remain open. No readiness percentage change.diff --cc crates/render/src/fx.rsindex 60267d0cb,c1b6cedbc..264d641db--- a/crates/render/src/fx.rs+++ b/crates/render/src/fx.rs@@@ -343,10 -323,30 +330,31 @@@ impl Renderer});}+ /// The effect's blend must see the object's backdrop, outside its clipping and offscreen+ /// filter layers. Putting it inside the clip blends with transparent pixels instead.+ fn with_blended_filters(+ &mut self,+ ctx: &mut RenderContext,+ f: &Frame,+ reach: Rect,+ sigma: f64,+ mix: Mix,+ draw: impl FnOnce(&mut Self, &mut RenderContext, &Frame),+ ) {+ if mix != Mix::Normal {+ ctx.set_transform(Affine::IDENTITY);+ ctx.push_layer(None, Some(BlendMode::new(mix, Compose::SrcOver)), None, None, None);+ }+ self.with_filters(ctx, f, reach, sigma, draw);+ if mix != Mix::Normal {+ ctx.pop_layer();+ }+ }+/// Run `draw`, which pushes filter layers. Single-threaded contexts draw directly. On a- /// multithreaded context the layer is drawn into an offscreen single-threaded context- /// covering `reach` (spread space) plus the blur's spread, then composited back.+ /// multithreaded context, or for a blur wider than [`MAX_BLUR_SPREAD`], the layer is drawn into+ /// an offscreen single-threaded context covering `reach` (spread space) plus the blur's spread,+ /// then composited back.pub(crate) fn with_filters(&mut self,ctx: &mut RenderContext,diff --cc crates/render/src/lib.rsindex 6b7735e7b,5f0a2b972..d891906e7--- a/crates/render/src/lib.rs+++ b/crates/render/src/lib.rs@@@ -394,13 -447,10 +447,17 @@@ impl Renderer}}}+ if blendspace::uses_cmyk(doc, sr, f.opts) {+ self.draw_cmyk_spread(ctx, f, sr);+ return;+ }+ // Blend modes blend with the objects below, not with the paper (as in InDesign and in PDF,+ // where the page's group starts transparent): a Color Dodge or Screen object over blank paper+ // shows as it is. So the items are drawn in their own group, laid over the paper once.+ let isolate = f.opts.paper && spread_blends(doc, sp);+ if isolate {+ ctx.push_layer(None, None, None, None, None);+ }// Layers back to front; within each layer parent items first (document spreads only).for layer in doc.layers.iter().rev() {if !layer.visible || f.opts.printing_only && !layer.printable {