[翻译] GoogleMaterialDesignIcons
GoogleMaterialDesignIcons
Google Material Design Icons Font for iOS
GMD圖片樣式的字體,用于iOS開發.
It is based on?https://github.com/google/material-design-icons.
這是基于https://github.com/google/material-design-icons來開發的.
it converts the material-design-icons svg file in the font file, it was easy to use.
這是將SVG文件轉換成了字體文件,使用非常簡單.
You can use the 1661 icons!
里面有1661個樣式供您使用!
Benefits of using the Font?- 使用這種字體的好處
- Import is easier to project(Since held together in one file)?將文件導入到工程當中
- Color easy to change?很容易的修改顏色
- Resistant to change size?可以直接的修改尺寸
- Management easier?管理很方便
- Put out in the text as part of the AttributedString?可以作為富文本輸出
Installation?- 安裝
CocoaPods
comming soon...
Manually?- 手動安裝
Add the?GoogleIcon.swift,?googleicon.ttf?file to your project.
info.plist added?Fonts provided by application?key and
specify the?googleicon.ttf?to Item0 value.
將GoogleIcon.swift與googleicon.ttf拖到你的項目當中.
然后修改info.plist文件,然后設置下即可.
Usage?- 使用
Please look at the icon/googleicon.html.
googleicon.html has been icon code definition.
The constant of icon code is defined in GoogleIcon class, please use.
請查看 icon/googleicon.html 文件,googleicon.html已經對icon有過編碼,你可以直接用下面的方式來使用.
GoogleIcon.e600 GoogleIcon.e601 GoogleIcon.e602 GoogleIcon.e603 ...hogeLabel.font = UIFont(name: GoogleIconName, size: 30.0) hogeLabel.textColor = UIColor.greenColor() hogeLabel.text = GoogleIcon.e600You can also be set font in the storyboard.?
你也可以在storyboard上設置字體.
Requirements?- 需要的環境
Requires iOS 7.0.
Features?- 特性
- Clipboard copy from Html?從Html上復制而來
- Complete example?完整的示例演示
Contributing?- 貢獻
Forks, patches and other feedback are welcome.
Creator
Yuji Hato?Blog
License
GoogleMaterialDesignIcons is available under the?Attribution 4.0 International?license.
總結
以上是生活随笔為你收集整理的[翻译] GoogleMaterialDesignIcons的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何提问问题?--《提问的智慧》再次推荐
- 下一篇: 解决:the selection is