Overprint Preview: overprinting characters draw with Darken too (#2415)

This commit is contained in:
bflatastic
2026-10-17 13:06:51 +07:00
parent 7e423f91e9
commit 2a3efa02f2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1773,12 +1773,12 @@ impl Renderer {
return;
}
let tb = t.xf.transform_rect_bbox(g.bounds);
// Overprinting characters multiply per draw, like overprinting fills and strokes
// Overprinting characters darken per draw, like overprinting fills and strokes
// ([`proof`]); the object blend mode is Normal here or applied by an enclosing layer.
let overprints = proof::overprints(f.opts);
let overprint = |ctx: &mut RenderContext, on: bool| {
if overprints {
ctx.set_blend_mode(if on { blend_mode(vectorcraft_color::BlendMode::Multiply) } else { BlendMode::default() });
ctx.set_blend_mode(if on { blend_mode(vectorcraft_color::BlendMode::Darken) } else { BlendMode::default() });
}
};
// The object's own fills and strokes paint the whole outline: those below the Characters
+1 -1
View File
@@ -103,7 +103,7 @@ impl PartialEq for Plates {
}
}
/// What [`prepare`] does to the fills and strokes of each node: overprinting ones multiply
/// What [`prepare`] does to the fills and strokes of each node: overprinting ones darken
/// ([`darken_overprints`]), and with Separations Preview every color shows as the visible plates
/// print it ([`plate_color`]).
struct How<'a> {