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

Support non-zero and even-odd fill rules for drawSvgPath #739

Closed
electronicwhisper opened this issue Jan 7, 2021 · 3 comments
Closed

Support non-zero and even-odd fill rules for drawSvgPath #739

electronicwhisper opened this issue Jan 7, 2021 · 3 comments

Comments

@electronicwhisper
Copy link

There's no option to choose "non-zero" vs "even-odd" as the fill rule when drawing an SVG path. It looks like "non-zero" is chosen by default.

Fill rules are supported in PDFKit: https://pdfkit.org/docs/vector.html#winding_rules

In Canvas, fill rule is supported with the optional fillRule parameter. https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill

@jingcheng-chen
Copy link

Any news on this feature?

@Hopding
Copy link
Owner

Hopding commented Sep 24, 2021

Added this to the roadmap for tracking: #998.

@Sharcoux
Copy link

Sharcoux commented Nov 9, 2023

We gave support in version 1.19.16 of @cantoo/pdf-lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants