Are svg symbols not supported when importing them to a font?

17 views
Skip to first unread message

jnystro...@gmail.com

unread,
Aug 14, 2017, 3:06:44 AM8/14/17
to IcoMoon
I got a bunch of SVG:s where some of them have their path defined as symbols and the implemented with the <use xlink:href="#symbolD"> . However, all of those using symbols are imported as empty SVGs with the following content:


<!-- Generated by IcoMoon.io -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
<title></title>
<g id="icomoon-ignore">
</g>
<path d=""></path>
</svg>


Original file looks like this:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 20 20">
<defs>
<style>.cls-1{opacity:0;}.cls-2{fill:#fff;}.cls-3{fill:#80177f;}</style>
<symbol id="Hus" data-name="Hus" viewBox="0 0 20 20">
<g class="cls-1">
<rect class="cls-2" width="20" height="20"/>
</g>
<path class="cls-3" d="M20,9,17,1H3L0,9H2V19H18V9ZM4.39,3H15.61l1.5,4H2.89ZM16,17H13V12H10v5H4V9H16Z"/>
</symbol>
</defs>
<title>Asset 38</title>
<g id="Layer_2" data-name="Layer 2">
<g id="Linjebaserade_ikoner" data-name="Linjebaserade ikoner">
<use width="20" height="20" xlink:href="#Hus"/>
</g>
</g>
</svg>

Keyamoon

unread,
Aug 14, 2017, 5:01:50 AM8/14/17
to IcoMoon
Thank you for reporting this issue. It's fixed now. Please refresh the app and try again.
Reply all
Reply to author
Forward
0 new messages