generate iconFont
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
908 B

### **IconFont creator**
-----
IconFont creator is a node.js code for making iconFont from svg files by using svgtofont modual and it creats **.ttf** , **.woff2** , **eot**, **woff** and **css** file to use icons with its special unicode in font unicode table.
-----
### **how to use**
The svg files stored in the database with their own unicodes are categorized by the name of the iconFont create for use.
server generate a name for each file and then create iconFont that use in css styles with this syntax :
.icon:after{
font-family: "fontName that created ";
content: "\f101"; #unicode of icon that we need to use
}
-----
### **Application**
1. Our site fetches only the required icons from the server and this improves the speed and performance of the server
2. Also, in this way, it is used to hash the documents inside the site in order to respect the copy right in the next updates