RazrFalcon / resvg

An SVG rendering library.
Mozilla Public License 2.0
2.74k stars 221 forks source link

Path bounding box calculation is incorrect #687

Closed RazrFalcon closed 9 months ago

RazrFalcon commented 10 months ago

As shown in the spec, a path bounding box should not include curve points (illustration 3). But this is exactly what resvg does. And specifically tiny-skia, which is used for getting the bbox...

Seems like it's broken since v0.34. Before we had a custom path bbox calculation algorithm. And none of the tests were affected by it...

RazrFalcon commented 9 months ago

Nope, still broken.

RazrFalcon commented 9 months ago

Miss click... I was planning to close #549 instead.