You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduction: run cargo run show "M40000 40000 a 12 12 0 0 0 0 -24" on the main branch (8d6bb2d)
Result:
The problem seems to be that the conversion step from arc to quadratic bezier involves computing the control point as the intersection of two lines. However due to the (relatively) high coordinates this results in a non-negligible error that really messes up the curve when you zoom in.
In my usecase I have some svgs where the bottom right corner in this numeric range and the errors are pretty evident in that area.
The text was updated successfully, but these errors were encountered:
Thanks for filing this and providing a simple test case. I don't have a lot of time to spend on this these days so I don't promise a fix soon, but your analysis sounds right and it would be worth avoiding the intersection here.
Reproduction: run
cargo run show "M40000 40000 a 12 12 0 0 0 0 -24"
on the main branch (8d6bb2d)Result:
The problem seems to be that the conversion step from arc to quadratic bezier involves computing the control point as the intersection of two lines. However due to the (relatively) high coordinates this results in a non-negligible error that really messes up the curve when you zoom in.
In my usecase I have some svgs where the bottom right corner in this numeric range and the errors are pretty evident in that area.
The text was updated successfully, but these errors were encountered: