Skip to content

svg render incorrect #58

@listeng

Description

@listeng

I use loadString to load a string and render into a ImageView, but some area fill error. It should not fill and it just a path. Is it a bug and how to fix it?

This is my SVG string:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" height="904" width="1120" viewBox="0 0 1120 904"> <g stroke-linejoin="round" stroke-linecap="round" fill="none" stroke="black"> <path stroke-width="12" d="M153,235c0,0 0,0 0,0 " /> <path stroke-width="11" d="M153,235c12,-3 12,-2 24,-5 " /> <path stroke-width="7" d="M177,230c67,-15 68,-14 134,-32 " /> <path stroke-width="6" d="M311,198c15,-4 15,-5 27,-13 9,-5 10,-8 17,-13 " /> <path stroke-width="9" d="M269,155c0,0 0,0 0,0 " /> <path stroke-width="11" d="M269,155c-2,5 -3,5 -5,11 " /> <path stroke-width="8" d="M264,166c-6,32 -7,32 -10,65 " /> <path stroke-width="6" d="M254,231c-1,17 0,17 1,34 1,13 2,13 4,27 2,11 2,11 4,22 " /> <path stroke-width="7" d="M263,314c1,5 2,7 3,11 " /> <path stroke-width="10" d="M255,253c0,0 0,0 0,0 " /> <path stroke-width="13" d="M255,253c-2,1 -2,0 -3,1 " /> <path stroke-width="9" d="M252,254c-36,25 -36,25 -72,50 " /> <path stroke-width="6" d="M180,304c-19,13 -19,14 -38,28 -14,11 -13,11 -27,22 -6,5 -6,5 -11,10 " /> <path stroke-width="10" d="M197,298c0,0 0,0 0,0 " /> <path stroke-width="11" d="M197,298c9,-5 9,-6 19,-9 " /> <path stroke-width="7" d="M216,289c35,-13 35,-14 71,-24 " /> <path stroke-width="6" d="M287,265c10,-3 10,-2 21,-3 " /> <path stroke-width="7" d="M308,262c4,-1 4,0 9,0 " /> <path stroke-width="10" d="M177,387c0,0 0,0 0,0 " /> <path stroke-width="12" d="M177,387c4,-2 4,-3 9,-4 " /> <path stroke-width="9" d="M186,383c13,-6 12,-7 26,-11 " /> <path stroke-width="7" d="M212,372c26,-10 26,-10 52,-18 " /> <path stroke-width="6" d="M264,354c9,-3 9,-2 18,-3 " /> <path stroke-width="7" d="M282,351c4,-1 5,-2 9,0 " /> <path stroke-width="9" d="M291,351c4,2 6,3 7,7 " /> <path stroke-width="8" d="M298,358c0,8 -2,9 -5,17 " /> <path stroke-width="7" d="M293,375c-3,8 -4,8 -8,17 -3,7 -3,6 -5,14 -2,9 -4,9 -3,19 " /> <path stroke-width="6" d="M277,425c0,9 -1,10 4,18 6,11 7,11 17,20 8,7 9,6 17,12 7,6 7,5 14,11 " /> <path stroke-width="7" d="M329,486c5,4 6,4 10,9 " /> <path stroke-width="8" d="M339,495c4,5 5,5 7,11 " /> <path stroke-width="7" d="M346,506c1,8 3,10 -1,17 -7,13 -8,15 -21,25 " /> <path stroke-width="6" d="M324,548c-16,13 -17,12 -36,21 -15,7 -15,7 -31,11 -12,3 -12,3 -25,3 -9,1 -10,0 -18,-3 " /> <path stroke-width="7" d="M214,580c-7,-2 -9,-2 -12,-7 -4,-10 -6,-13 -2,-23 " /> <path stroke-width="6" d="M200,550c6,-18 9,-19 21,-35 14,-16 13,-17 31,-29 40,-28 48,-29 84,-50 " /> <path stroke-width="8" d="M460,347c0,0 0,0 0,0 " /> <path stroke-width="9" d="M460,347c1,12 1,12 3,24 " /> <path stroke-width="7" d="M463,371c2,18 2,18 5,36 " /> <path stroke-width="6" d="M468,407c4,20 4,20 9,40 2,14 3,14 6,28 1,8 1,8 2,16 " /> <path stroke-width="8" d="M485,491c1,3 1,4 2,7 " /> <path stroke-width="11" d="M506,321c0,0 0,0 0,0 " /> <path stroke-width="14" d="M506,321c0,0 0,0 0,0 " /> <path stroke-width="10" d="M506,321c18,-11 17,-13 36,-22 " /> <path stroke-width="6" d="M542,299c21,-11 21,-13 44,-19 41,-11 41,-11 84,-15 17,-2 18,-3 35,1 13,3 13,4 24,12 10,6 11,6 17,16 9,12 10,13 14,28 5,16 4,17 4,33 -1,19 -2,20 -7,38 -5,18 -6,18 -14,34 -9,18 -9,17 -20,33 -4,6 -5,5 -10,10 " /> <path stroke-width="9" d="M570,321c0,0 0,0 0,0 " /> <path stroke-width="13" d="M570,321c0,0 0,0 0,0 " /> <path stroke-width="10" d="M570,321c-3,17 -3,17 -7,35 " /> <path stroke-width="6" d="M563,356c-3,10 -3,10 -6,20 " /> <path stroke-width="7" d="M557,376c-1,6 -2,6 -3,13 " /> <path stroke-width="8" d="M554,389c-1,3 -1,4 1,7 " /> <path stroke-width="10" d="M555,396c0,2 1,2 3,4 " /> <path stroke-width="12" d="M666,306c0,0 0,0 0,0 " /> <path stroke-width="13" d="M666,306c-1,2 -1,2 -2,4 " /> <path stroke-width="9" d="M664,310c-15,24 -15,24 -29,49 " /> <path stroke-width="6" d="M635,359c-8,12 -7,12 -15,25 -4,8 -5,8 -10,16 " /> <path stroke-width="7" d="M610,400c-4,7 -4,7 -8,14 " /> <path stroke-width="9" d="M602,414c0,1 0,1 -1,2 " /> <path stroke-width="12" d="M560,478c0,0 0,0 0,0 " /> <path stroke-width="14" d="M560,478c0,0 0,0 0,0 0,0 0,0 0,0 " /> <path stroke-width="10" d="M560,478c22,-7 22,-8 44,-15 " /> <path stroke-width="6" d="M604,463c30,-8 30,-8 60,-15 25,-5 26,-5 52,-9 10,-2 10,-2 20,-4 " /> </g> </svg>

render_error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions