Open YuJianrong opened 5 years ago
Can confirm this, having a similar issue with my SVG, code below:
`
<path d="M11.7031 16.5L7.99915 20V13L11.7031 16.5Z" fill="#A1A1A1" />
`
original:
iconfont result:
I have this issue on an icon that doesn't use fill-rule
. In the SVG below it's a single path but I've made several other export attempts and the output (when converted into an icon font) is the same. The only solution I've found is to manually edit the paths to not overlap.
Original (as seen in Sketch):
Rendered (in the icon font, produced by icon-font-generator):
As noted in https://github.com/nfroidure/svgicons2svgfont/issues/62, Icomoon doesn't seem to have this issue, so it may be an issue with the conversion from the input SVG somewhere along the way.
SVG source:
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32">
<path d="M11.063 11.063v7.938h9.875v-7.938zM10.188 9.313h11.625c0.5 0 0.875 0.375 0.875 0.875v9.688c0 0.5-0.375 0.875-0.875 0.875h-11.625c-0.5 0-0.875-0.375-0.875-0.875v-9.688c0-0.5 0.375-0.875 0.875-0.875zM16 2.75l-13.875 6.313c-0.438 0.188-0.938 0-1.188-0.438-0.188-0.438 0-1 0.5-1.188l14.188-6.5c0.25-0.063 0.5-0.063 0.75 0l14.188 6.5c0.5 0.188 0.688 0.75 0.5 1.188-0.25 0.438-0.75 0.625-1.188 0.438zM15.125 10.188c0-0.5 0.375-0.875 0.875-0.875s0.875 0.375 0.875 0.875v3.25c0 0.438-0.375 0.875-0.875 0.875s-0.875-0.438-0.875-0.875zM5.25 20.75v7.938h9.875v-7.938zM4.375 19h11.625c0.5 0 0.875 0.375 0.875 0.875v9.688c0 0.5-0.375 0.875-0.875 0.875h-11.625c-0.5 0-0.875-0.375-0.875-0.875v-9.688c0-0.5 0.375-0.875 0.875-0.875zM9.313 19.875c0-0.5 0.375-0.875 0.875-0.875s0.875 0.375 0.875 0.875v3.25c0 0.5-0.375 0.875-0.875 0.875s-0.875-0.375-0.875-0.875zM16.875 28.688h9.875v-7.938h-9.875zM16 19h11.625c0.5 0 0.875 0.375 0.875 0.875v9.688c0 0.5-0.375 0.875-0.875 0.875h-11.625c-0.5 0-0.875-0.375-0.875-0.875v-9.688c0-0.5 0.375-0.875 0.875-0.875zM20.938 19.875c0-0.5 0.375-0.875 0.875-0.875s0.875 0.375 0.875 0.875v3.25c0 0.5-0.375 0.875-0.875 0.875s-0.875-0.375-0.875-0.875z"/>
</svg>
Issue
I'm a gentledev i:
My svg looks like this:
It combined by three
path
s, the first one is the closed circle, the second and third one are some shapes overlapped with the circle. Some of the intersections are invertedExpected behavior
Actual behavior
Steps to reproduce the behavior
Upload the svg to http://nfroidure.github.io/svgiconfont/