[翻譯] GoogleMaterialDesignIcons

GoogleMaterialDesignIconshtml

Google Material Design Icons Font for iOSgit

GMD圖片樣式的字體,用於iOS開發.github

It is based on https://github.com/google/material-design-icons.swift

這是基於https://github.com/google/material-design-icons來開發的.app

it converts the material-design-icons svg file in the font file, it was easy to use.ide

這是將SVG文件轉換成了字體文件,使用很是簡單.
You can use the 1661 icons!svg

裏面有1661個樣式供您使用!字體

Benefits of using the Font - 使用這種字體的好處ui

  • 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 - 安裝google

CocoaPods

comming soon...

Manually - 手動安裝

Add the GoogleIcon.swiftgoogleicon.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.e600 

You 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.

相關文章
相關標籤/搜索