Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Remove fill-rule="evenodd" #235

Open
yisibl opened this issue Apr 6, 2021 · 0 comments
Open

Remove fill-rule="evenodd" #235

yisibl opened this issue Apr 6, 2021 · 0 comments

Comments

@yisibl
Copy link
Contributor

yisibl commented Apr 6, 2021

This can remove fill-rule="evenodd" clip-rule="evenodd" and make the svg file smaller. After removal, fill-rule will become the default value of nonzero, which can be omitted.

Certain export formats (e.g. TrueType fonts, Android VectorDrawable) only support the nonzero fill rule.

This Python library(googlefonts/picosvg#54) can do this, based on skia-pathops

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

No branches or pull requests

1 participant