IconFont Compiler
Compile .iconfont file to icon fonts(.svg, .ttf, .eot, .woff, .woff2, .css, .html)
How to use
- Create a
icon.iconfont
file:
Then copy all the .svg
icons to the same directory of icon.iconfont
You can add some attributes to <svg>
nodes:
name
: The name of iconunicode
: The unicode string of iconclass
: The css class name of icontitle
: Readable title of icon
For example:
- Generate all files using compiler api
const result = await