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 can remove
fill-rule="evenodd" clip-rule="evenodd"
and make the svg file smaller. After removal, fill-rule will become the default value ofnonzero
, 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