-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
circles drawn in grid viewports are too big #93
Comments
Here is perhaps a better minimal example where the circle should be completely hidden by a rectangle (filling up the entire viewport) but instead when drawn in
|
I'm also quite affected by this issue hence I'm reviving the thread (just tell me if that's a bad idea!). Using some trial and error, I was able to find the source of the issue: I modified the example above so that the resulting svg is square ( ↓ pt???
<circle cx='252.00' cy='252.00' r='126.00pt' style='stroke-width: 0.75; fill: #0000FF;' />
<rect x='126.00' y='126.00' width='252.00' height='252.00' style='stroke-width: 0.75; fill: #FFFF00;' /> The radius is rendered using pt. However, I think this is unnecessary. If I remove the pt and examine the result in Inkscape then the circle appears to have the correct size and is completely covered by the square. I'm happy to create a fork in an attempt to fix this. However, this change may very well break things downstream (or at least make it look differently, causing unit tests to fail). Any pointers on how to proceed? Edit: |
I think this makes sense, could you send a PR please? For the difference in outputs, vdiffr embeds its own version of svglite so at least this trouble is avoided. |
I'm observing
svglite
drawing circles that are too big when drawing circles in grid viewports. This issue doesn't seem to affect rectangles. I don't observe this behaviour with the cairo family of graphic devices.Here is a minimal example where the circles should touch (but not significantly overlap):
The text was updated successfully, but these errors were encountered: