I am working on an app that uses Polymer. I need to include the IcoMoon Free Fonts into my app. For some reason, I can't get the icons into my app. Here is what I've tried:
- Selected all of the icons at the link above.
- Clicked the "Generate SVG, PNG, PDF" button in the lower left.
- Clicked the "Download" button in the lower left.
- Extracted the .zip file contents into a directory.
- Opened the symbol-defs.svg file in a text editor.
- Copied the
defs
element and all of its contents. - Created a file called "icomoon.html"
- Put the following code in icomoon.html, based on this:
icomoon.html
<iron-iconset-svg name="icomoon" size="100">
<svg>
<!-- Code copied in step 6 placed here -->
</svg>
</iron-iconset-svg>
- In my element, I add
<link rel="import" href="[path]/icomoon.html">
- I then attempt to use an icon by saying
<iron-icon icon="icomoon:icon-home"></iron-icon>
.
The icon doesn't appear. I don't understand why.
Update
icomoon.html
<link rel="import" href="../bower/iron-icon/iron-icon.html">
<link rel="import" href="../bower/iron-iconset-svg/iron-iconset-svg.html">
<iron-iconset-svg name="icomoon" size="50">
<svg>
<defs>
<path id="home" d="M1024 590.446l-512-397.428-512 397.428v-162.038l512-397.426 512 397.428zM896 576v384h-768v-384l384-288z"></path>
</defs>
</svg>
</iron-iconset-svg>