FontCustom / fontcustom

Generate custom icon webfonts from the comfort of the command line.
3.29k stars 423 forks source link

Multiple path svg icons are being merged to 1 glyph #300

Open krikke26 opened 8 years ago

krikke26 commented 8 years ago

I have several svg that have multiple paths to give them a different color. Icomoon seperate this svg into 3 font glyphs and creates 3 span tags to allow the icon to be displayed. But it seems that fontcustom merges them into 1.

Would be great if fontcustom could do the same. An example svg:

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32" viewBox="0 0 56 32">
<path fill="rgb(0, 0, 0)" d="M6.726 4.656h30.329l-15.079 11.909z"></path>
<path fill="rgb(0, 0, 0)" d="M29.644 22.348c-1.371-3.341 0.214-7.197 3.513-8.61 0.814-0.343 1.628-0.514 2.527-0.514 0.728 0 1.456 0.129 2.142 0.343v-7.154l-15.85 12.423-15.85-12.423v18.892h25.703c-1.028-1.114-1.842-2.185-2.185-2.956z"></path>
<path fill="rgb(224, 84, 49)" d="M47.979 14.937c-2.699-1.114-5.74 0.171-6.854 2.87-0.086 0.257-0.171 0.557-0.257 0.985-0.086-0.386-0.171-0.728-0.257-0.985-1.114-2.699-4.198-3.984-6.897-2.87s-3.941 4.241-2.827 6.94c1.114 2.656 9.981 10.41 9.981 10.41s8.867-7.754 9.981-10.452c1.071-2.699-0.214-5.783-2.87-6.897z"></path>
</svg>
oskarszura commented 8 years ago

I've faced the same issue - any updates on that?

krikke26 commented 8 years ago

Not really. I gave up on this or making a custom font generator. I made a tool to manage svg icons and when i want to make a font i download the svg icon project and upload it to icomoon and then generate the font.

The repo had no updates for over a year now.