Closed flxzt closed 9 months ago
Yeah, it's somewhat of a known bug (see second example here), the problem is that we are currently not handling def's referencing other def's correctly.
Yes, this is a know issue. usvg
CLI is beta quality. It's more like a demo at this point.
@LaurenzV if you have more tests for this issue - feel free to add them.
I don't have any other ones currently, but will do if I encounter them.
When writing an usvg tree to string with the following Svg content, it seems to be failing this debug assertion while writing the group that is located in
<defs>
.Reproducing the issue can be done by executing the usvg cli (built with the dev profile):
with this file (it is generated through cairo's svg surface in my application Rnote):
minimal
its content:
the stacktrace: