Compound Path SVG Breaks in Widget?

Sannyasin Brahmanathaswami brahma at hindu.org
Mon Nov 21 22:29:49 CET 2016


Aloha, Paul:

Hmmm there's a huge difference between illustrator output 

M112,0H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,0Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,44Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,88Z

and 

Affinity output

    M112,0l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Z

Illustrator there are a variety of settings in the SVG export… but none of them change the string we see above.  but the SVG profile option is missing today… now sure why… 

OT: I keep resisting Adobe suite updates I disabled their update deamon and been sitting on '15 forever… I may need to update.

Though I think affinity may be a good tool to have… as I find illustrator less than user friendly.

BR

 

On 11/20/16, 12:57 PM, "use-livecode on behalf of Paul Hibbert" <use-livecode-bounces at lists.runrev.com on behalf of paul at livecode.org> wrote:

    Just re-created your SVG from the SVG text and opened the file in Affinity Designer, then exported it as SVG, converted back to text and then extracted the SVG paths:
    
    M112,0l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Zm0,44l-100,0c-6.583,0 -12,5.417 -12,12c0,6.583 5.417,12 12,12l100,0c6.583,0 12,-5.417 12,-12c0,-6.583 -5.417,-12 -12,-12Z
    
    Pasted that into an SVG Icon widget and it works fine, so I guess it’s something to do with the way Illustrator exports the data, are there any options to try? Maybe compression?
    
    Paul



More information about the use-livecode mailing list