Skip to content
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

Fix svg import (stroke-linecap and stroke-linejoin) #5036

Merged
merged 3 commits into from Mar 10, 2024

Conversation

jumostedu
Copy link
Contributor

@jumostedu jumostedu commented Mar 9, 2024

Fixes wrong default for stroke-linecap, cause of #3809

Updates (wrong) expected png for related test (svgpngtest_spec-shapes-line01). I manually compared the old and the updated png to what Gwenview renders (which for the stuff mentioned in #3809 is the same as e.g. Firefox and other applications) and the updated png matches, the old one does not, because of the stroke-linecap.

Also fixes a wrong value name I noticed in an adjacent function for stroke-linejoin. There seems no test affected.

See commit messages for links to according part in SVG spec.

Was "square", now is "butt" as stated as default value in SVG spec:
https://www.w3.org/TR/SVG11/painting.html#StrokeLinecapProperty
Fixes openscad#3809
With fix for openscad#3809 this test failed. New expected png now matches how
other applications (firefox, gwenview, ...) render the input svg.
Copy link
Member

@t-paul t-paul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for including the spec links for easier review.

@t-paul t-paul merged commit f96ef9b into openscad:master Mar 10, 2024
5 checks passed
@jumostedu jumostedu deleted the fix-svg-linecap branch March 10, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants