Open zhouzhongyuan opened 7 years ago
遍历。 怎么查找
/**
* 现在使用icon font的方式。
* 总价两种,name中,leftElement/rightElement.
*
*/
import { IconToggle } from 'react-native-material-ui';
<IconToggle
name="more-vert"
>
import Toolbar from 'react-native-material-ui';
<Toolbar
leftElement="arrow-back"
/>
import Icon from 'react-native-vector-icons/FontAwesome';
<Icon
name={setting.icon}
/>
可能不在这个地方查找,可能会在生成的html中查找。
gulp-fontmin的方法是取得html中所有的字符(包含< h t m l 等)。
https://my.oschina.net/JackSparrow/blog/865004
https://stackoverflow.com/questions/27048422/remove-unused-font-awesome-icons
.
.
Failed to decode downloaded font: http://localhost:63342/font-demo/demo02/src/TpldKhangXiDict_1.022.otf
index.html:1 OTS parsing error: Web font size more than 30MB
目的: 减少ttf文件的体积 途径:删除不需要的字符,仅保留需要的字符
成果:
工具:
fontmin
font-spider
fontstore