From f643c18dc0c287934833926aaac5b46ede57937a Mon Sep 17 00:00:00 2001 From: Petru Conduraru Date: Tue, 21 Jul 2026 10:32:42 +0300 Subject: [PATCH] Bonsai: stop rasterizing fill-bg annotation text on PDF export The "fill-background" SVG filter (used for EPset_Annotation.Classes = fill-bg text backgrounds) merged the flood-filled background with the text's own SourceGraphic via feMerge, even though the unfiltered text is already drawn again as a separate, undamaged vector copy on top. PDF has no native equivalent for SVG filter primitives, so any element carrying a filter attribute gets rasterized on SVG-to-PDF conversion (e.g. via Inkscape); merging the redundant SourceGraphic copy into that raster produced the blurry/pixelated halo reported in #5719. Dropping feMerge and keeping only feFlood still yields the same bounding-box-sized background rectangle, without baking a second, blurred copy of the glyphs into the rasterized output. Generated with the assistance of an AI coding tool. --- src/bonsai/bonsai/bim/data/assets/markers.svg | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/bonsai/bonsai/bim/data/assets/markers.svg b/src/bonsai/bonsai/bim/data/assets/markers.svg index 96a171b3b0..265f669594 100644 --- a/src/bonsai/bonsai/bim/data/assets/markers.svg +++ b/src/bonsai/bonsai/bim/data/assets/markers.svg @@ -97,11 +97,7 @@ - - - - - +