mntone / SvgForXaml

Draw SVG image with Win2D
MIT License
94 stars 18 forks source link

fill and fill-rule for grouped #10

Open omanuke opened 7 years ago

omanuke commented 7 years ago

I use Sketch app to export SVG file. When this app exports as SVG, the place for fill and fill-rule is different by being grouped or not grouped. if grouped, `

if not grouped ` I'm not sure this behavior is fit to SVG specification or not, but this causes grouped path is drawn as filling black by this library.

karak commented 7 years ago

@omanuke It depends on the specification of the grouping function of the application.

Supposing a group has 2 paths which intersect each other, which "fill-rule" attribute or attributes belong to makes different shapes, and neither violates the SVG specification.