Open widi8835 opened 4 months ago
I thought we have resolved this in #278
Unfortunately not. I tested it with 1.8.4 too.
Unfortunately not. I tested it with 1.8.4 too.
Maybe we just have to drop the WPF specific options, getting difficult finding a solution that will satisfy all cases.
I use FileSvgReader to read SVGs and use the resulting Drawing in my software. In WpfDrawingSettings EnsureViewboxPosition and EnsureViewboxSie are set to true. In v1.8.1 it works like expected. Since at least v1.8.3 the ViewBox isn't correctly handled anymore.
Tested with WpfSvgTestBox (*_expected.png faked with option EnsureViewBox=false):
ViewBox is not handled correctly ViewBox.svg:
Translation is not handled correctly: it seems, that when WpfDrawingContext.UpdateBounds is call (with option 'EnsureViewboxSize=true'), translation is not considered Translation.svg:
SVGs are created with Inkscape 1.2.2 (732a01da63, 2022-12-09)
By the way: Thanks for you work!