E52D #692 allow shape-rendering by syjer · Pull Request #708 · danfickle/openhtmltopdf · GitHub
[go: up one dir, main page]

Skip to content

#692 allow shape-rendering#708

Merged
danfickle merged 1 commit intodanfickle:open-dev-v1from
syjer:692-allow-shape-rendering
May 27, 2021
Merged

#692 allow shape-rendering#708
danfickle merged 1 commit intodanfickle:open-dev-v1from
syjer:692-allow-shape-rendering

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

0