From c623e63cf10c5e666c2da27833d38de4d47dc12f Mon Sep 17 00:00:00 2001 From: Nickolay Savchenko Date: Sat, 28 May 2022 03:45:41 +0300 Subject: [PATCH] Support for android:fillType="evenOdd" --- VectorDrawable2Svg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VectorDrawable2Svg.py b/VectorDrawable2Svg.py index f83959a..6b54368 100755 --- a/VectorDrawable2Svg.py +++ b/VectorDrawable2Svg.py @@ -83,6 +83,9 @@ def convert_paths(vd_container, svg_container, svg_xml): if vd_path.hasAttribute('android:strokeColor'): svg_path.attributes['stroke'] = get_color( vd_path.attributes['android:strokeColor'].value) + if vd_path.hasAttribute('android:fillType'): + if vd_path.attributes['android:fillType'].value == 'evenOdd': + svg_path.attributes['fill-rule'] = 'evenodd' svg_container.appendChild(svg_path)