Small micro-channel programs use a third-party library part FontIcon font icon

First, the extraction section to re-create the icon TTF fonts


I did not use the Internet most articles written fonticon Taobao provided, but only a few icons Ionicons, so open Ionicons official website click on the upper right corner of the Designer pack download archive, the archive provides the entire font svg vector file .
Then open icomoon website , click on the top left of the Import Icons , import svg file icon you need, you can import more.
Click the bottom right corner after importing Generate Font post, go to the next page click on the bottom right corner of Download download archive.
Extract from the document: style.cssand fonts/icomoon.ttfbe useful.

Second, the TTF fonts converted to Base64 format


Applet using FontIcon must first be converted to Base64.
Open transfonter website , click Add fonts to add a step to make out icomoon.ttf, select Family support options and Base64 encode , the following Formats are all not selected.
Click to Convert download the generated archive.
Compressed package stylesheet.cssis Base64 font format.

Third, the program calls the small icon

 

 

 Add to

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/SallyShan/p/11792221.html