typst / svg2pdf

Converts SVG files to PDF.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested SVG layout is wrong

Legonaftik opened this issue · comments

nested_svg.svg -> nested_svg.pdf
Expected to see 4 rectangles at all the edges like with other converters.

https://github.com/typst/svg2pdf#supported-features
Supported features explicitly include nested SVGs but I couldn't find any input example in tests.

This is a bug in the resvg library that svg2pdf uses under the hood, see here.

As I can see, the root cause is fixed and merged into resvg master branch so this issue can be closed as soon as this project is updated to use the latest version of resvg (usvg). 👍

I can confirm that usvg 0.30.0 fixes this issue, thanks to your contribution: RazrFalcon/resvg@0000508