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

#692 allow shape-rendering #708

Merged
merged 1 commit into from
May 27, 2021
Merged

#692 allow shape-rendering #708

merged 1 commit into from
May 27, 2021

Conversation

syjer
Copy link
Contributor

@syjer syjer commented May 26, 2021

hi @danfickle , this PR allow the CSS property shape-rendering to the svg batik backend.
I've tested with the following html:

<html>
<head>
    <style>
        svg.my-svg circle {
            fill:blue;
            shape-rendering: geometricPrecision;
        }
    </style>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" height="100" width="100" class="my-svg">
    <circle id="icon-1" r="100" stroke="black" stroke-width="1" />
</svg>
</body>
</html>

The java2d backend render without shape-rendering:

no-shape

with shape:

with-shape

You can notice the applied anti aliasing, as described in the issue #692

@danfickle danfickle merged commit 1afd265 into danfickle:open-dev-v1 May 27, 2021
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.

2 participants