• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

dekatotoro/GoogleMaterialDesignIcons: Google Material Design Icons Font for iOS

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

dekatotoro/GoogleMaterialDesignIcons

开源软件地址(OpenSource Url):

https://github.com/dekatotoro/GoogleMaterialDesignIcons

开源编程语言(OpenSource Language):

HTML 82.0%

开源软件介绍(OpenSource Introduction):

GoogleMaterialDesignIcons

Platform Language Issues

#Google Material Design Icons Font for iOS It is based on https://github.com/google/material-design-icons.
it converts the material-design-icons svg file in the font file, it was easy to use.
You can use the 1661 icons!


![sample](Screenshots/GoogleMaterialDesignIcons.gif)

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

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

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

To input font characters directly in the Interface Builder, do the following after selecting googlefont:

  1. Add the "Unicode Hex Input" input source under (System Preferences > Keyboard > Input Sources).
  2. Hold down Option and type four hex digits to enter a Unicode character.
    For example, you can Option + e648 to enter the checkmark icon.

Requirements

Requires iOS 7.0.

Features

  • Clipboard copy from 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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap