RazrFalcon / svgcleaner

svgcleaner could help you to clean up your SVG files from the unnecessary data.
GNU General Public License v2.0
1.63k stars 94 forks source link

Remove fill-rule="evenodd" #235

Open yisibl opened 3 years ago

yisibl commented 3 years ago

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(https://github.com/googlefonts/picosvg/pull/54) can do this, based on skia-pathops