Font Awesome Stylus
字体真棒的手写笔端口
安装
在您的项目中导入字体Awessy并正确配置字体路径($ fa–font-Path)
鲍尔的支撑
bower install font-awesome-stylus
NPM支持
npm install font-awesome-stylus
用法
设置字体路径
$fa-font-path = \"../fonts\" // OR $fa-font-path = \"http://netdna.b*ootst*rap*cdn.com/font-awesome/4.7.0/fonts\"
需要和使用字体知识中间件来创建编译功能以在其他框架中使用的示例。
var fontAwesome = require ( \'font-awesome-stylus\' ) , stylus = require ( \'stylus\' ) ; function compile ( str ) { return stylus ( str ) . use ( fontAwesome ( ) ) ; }
要在您的手写笔文件中导入整个字体令人陶醉:
@import \"font-awesome-stylus\"
使用Mixin包括图标
.my-icon
fa(user)
原始来源
http://fortawesome.*g**ithub.io/font-awesome
