avianey / androidsvgdrawable-plugin

Gradle plugin that generates qualified, density specific PNG drawables from SVG files at build time for your Android projects.
Apache License 2.0
262 stars 29 forks source link

Batik does not handle properly vendor specific style #44

Open avianey opened 9 years ago

avianey commented 9 years ago

When a style attribute contain a vendor specific style, batik fails to evaluate properly the entire style attribute :

<path
       inkscape:connector-curvature="0"
       id="path2990-2"
       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:125%;font-family:awards;-inkscape-font-specification:awards;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none"
       d="m -558.64901,514.55271 c -0.79754,3e-5 -1.48114,0.28487 -2.05078,0.85449 -0.56967,0.56969 -0.85451,1.25329 -0.8545,2.05078 l 0,7.31446 c -10e-6,1.02541 0.36457,1.8913 1.09375,2.59765 l 3.17872,3.17871 c -1.11656,1.02541 -1.98814,2.23309 -2.61476,3.62305 -0.62663,1.38998 -0.93994,2.8711 -0.93993,4.44336 -10e-6,3.00781 1.07095,5.58269 3.21289,7.72461 2.14191,2.14192 4.71677,3.21289 7.72461,3.21289 3.00779,0 5.58265,-1.07097 7.72461,-3.21289 2.14189,-2.14192 3.21286,-4.7168 3.21289,-7.72461 -3e-5,-1.57226 -0.31335,-3.05338 -0.93995,-4.44336 -0.62665,-1.38996 -1.49823,-2.59764 -2.61474,-3.62305 l 3.17871,-3.17871 c 0.72914,-0.70635 1.09372,-1.57224 1.09375,-2.59765 l 0,-7.31446 c -3e-5,-0.79749 -0.28486,-1.48109 -0.85449,-2.05078 -0.56969,-0.56962 -1.25328,-0.85446 -2.05078,-0.85449 z m 8.20312,18.62793 c 0.0911,-0.27343 0.27342,-0.41015 0.54688,-0.41016 0.27341,10e-6 0.45571,0.13673 0.54687,0.41016 l 1.33301,3.24707 3.38379,0 c 0.15948,10e-6 0.2962,0.0684 0.41016,0.20508 0.1139,0.13673 0.17086,0.27345 0.17089,0.41015 -3e-5,0.20509 -0.0797,0.35321 -0.23925,0.44434 l -2.8711,1.94824 c 0.61522,2.30144 0.93422,3.48633 0.95704,3.55469 0.0227,0.0456 0.0341,0.10248 0.0341,0.1709 -2e-5,0.15951 -0.057,0.29053 -0.1709,0.39306 -0.11396,0.10259 -0.25067,0.15381 -0.41015,0.15381 -0.13675,0 -0.25068,-0.0456 -0.3418,-0.13672 l -2.80274,-2.15332 -2.80273,2.15332 c -0.0911,0.0911 -0.2051,0.13672 -0.3418,0.13672 -0.15952,0 -0.29624,-0.0513 -0.41015,-0.15381 -0.11395,-0.10248 -0.17092,-0.23355 -0.1709,-0.39306 -2e-5,-0.0684 0.0114,-0.12532 0.0341,-0.1709 0.63801,-2.23307 0.95701,-3.40657 0.95703,-3.52051 l -2.87109,-1.98242 c -0.15952,-0.0911 -0.23927,-0.23925 -0.23926,-0.44434 -1e-5,-0.1367 0.057,-0.27342 0.1709,-0.41015 0.11391,-0.13671 0.25063,-0.20507 0.41016,-0.20508 l 3.38379,0 1.333,-3.24707 z m -4.5459,-13.53516 0,5.12696 c -2e-5,0.38739 -0.14242,0.72349 -0.42725,1.00829 -0.28484,0.28486 -0.63233,0.42727 -1.04247,0.42725 -0.41017,2e-5 -0.75766,-0.14239 -1.04249,-0.42725 -0.28483,-0.2848 -0.42725,-0.6209 -0.42724,-1.00829 l 0,-5.12696 c -10e-6,-0.38734 0.14241,-0.72344 0.42724,-1.0083 0.28483,-0.28481 0.63232,-0.42721 1.04249,-0.42724 0.41014,3e-5 0.75763,0.14243 1.04247,0.42724 0.28483,0.28486 0.42723,0.62096 0.42725,1.0083 z m 6.56251,0 0,6.5625 c -3e-5,0.41018 -0.14244,0.75768 -0.42726,1.04248 -0.28484,0.28485 -0.63234,0.42727 -1.04247,0.42725 -0.41018,2e-5 -0.75767,-0.1424 -1.04249,-0.42725 -0.28484,-0.2848 -0.42726,-0.6323 -0.42724,-1.04248 l 0,-6.5625 c -2e-5,-0.38734 0.1424,-0.72344 0.42724,-1.0083 0.28482,-0.28481 0.63231,-0.42721 1.04249,-0.42724 0.41013,3e-5 0.75763,0.14243 1.04247,0.42724 0.28482,0.28486 0.42723,0.62096 0.42726,1.0083 z m 6.5625,0 0,5.12696 c -4e-5,0.38739 -0.14245,0.72349 -0.42726,1.00829 -0.28485,0.28486 -0.63235,0.42727 -1.04247,0.42725 -0.41019,2e-5 -0.75768,-0.14239 -1.04249,-0.42725 -0.28485,-0.2848 -0.42726,-0.6209 -0.42724,-1.00829 l 0,-5.12696 c -2e-5,-0.38734 0.14239,-0.72344 0.42724,-1.0083 0.28481,-0.28481 0.6323,-0.42721 1.04249,-0.42724 0.41012,3e-5 0.75762,0.14243 1.04247,0.42724 0.28481,0.28486 0.42722,0.62096 0.42726,1.0083 z" />

The -inkscape-font-specification:awards prevents the fill color to be applied...