liaohuqiu/icon-font-for-multiple-platforms
关于
从 Sketch 文件中提取额外图标并生成字体文件,还提供在 Web、iOS 和 Android 上使用这些字体的示例。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Using icon font for multiple platforms
This project can make icon font files from Sketch file.
These font files can be used in Web, Android and iOS.
This project also demos how to use the font files on these platforms.
Thank you @Okernel for making this feature image:
Requirements
- Mac
- Sketch
- npm
How to use
Clone or download this project
Install
sh manage.sh installMake icon font from Sketch file
sh manage.sh makecube-icons-sample.sketchis a sample Sketch file, you can change your own one.See what we have
Web
You can open
samples/web/index.htmlin your browser, then you will see all the icons.You also can open it by:
sh manage.sh openiOS project
You can open XCode sample proejct under dirctory:
samples/iosAndroid proejct
You can open Android Studio sample proejct under dirctory:
samples/android
Customize
You can edit
gulpfile.jsto:Use you own Sketch icon file.
Change the name of the icon files.
Change the css class name.
Other things you want.
All the files under dirctory
dist/are generated bygulpfile.jsaccording the file under dirctory '/templates'If can customize your own template files if you want.
License
MIT
Thanks
This project is mainly based on https://github.com/cognitom/symbols-for-sketch.
@Okernel's beautiful feature image.
https://github.com/liaohuqiu/icon-font-for-multiple-platforms/issues/1
探索相关项目
加载中…