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.
Mohammadreza Maxsusi
4677bf0efd
|
2 years ago | |
---|---|---|
bin | 2 years ago | |
iconFont/iconFontsOficonsax2 | 2 years ago | |
models | 2 years ago | |
node_modules | 2 years ago | |
public/stylesheets | 2 years ago | |
routes | 2 years ago | |
svgs | 2 years ago | |
views | 2 years ago | |
app.js | 2 years ago | |
package-lock.json | 2 years ago | |
package.json | 2 years ago | |
readme.txt | 2 years ago |
readme.txt
### **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