Compound Path SVG Breaks in Widget?

Paul Hibbert paul at livecode.org
Sun Nov 20 23:57:35 CET 2016


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

> On Nov 20, 2016, at 2:11 PM, Sannyasin Brahmanathaswami <brahma at hindu.org> wrote:
> 
> 
> 1)  3 bar menu (hamburger menu" download SVG icon from  http://www.flaticon.com/
> 2) open in Illustrator
> 3) select all
> 4) Make compound path
> 
> save as SVG
> 
> file looks like this:
> 
> <svg id="Capa_1" data-name="Capa 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 124 112"><title>three-horizontal-lines_compound</title><path d="M112,6H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,6Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,50Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,94Z" transform="translate(0 -6)" style="fill:none"/></svg>
> 
> 
> Pasting this into the widget generates an error.
> 
> M112,6H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,6Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,50Zm0,44H12a12,12,0,0,0,0,24H112A12,12,0,0,0,112,94Z
> 
> Any Clues?
> 
> already entered here:
> 
> http://quality.livecode.com/show_bug.cgi?id=18884
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list