博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[翻译] GoogleMaterialDesignIcons
阅读量:7261 次
发布时间:2019-06-29

本文共 1575 字,大约阅读时间需要 5 分钟。

GoogleMaterialDesignIcons

Google Material Design Icons Font for iOS

GMD图片样式的字体,用于iOS开发.

It is based on .

这是基于来开发的.

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.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.e600GoogleIcon.e601GoogleIcon.e602GoogleIcon.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

 

License

GoogleMaterialDesignIcons is available under the  license.

 

转载地址:http://qfpdm.baihongyu.com/

你可能感兴趣的文章
***PHP implode() 函数,将数组合并为字符串;explode() 函数,把字符串打散为数组
查看>>
jQuery 操作 input 之 checkbox
查看>>
sublime 内容高级搜索
查看>>
AngularJS1.3一些技巧
查看>>
数据仓库专题(15)-数据仓库建设基本原则-实践篇(求补充)
查看>>
Context
查看>>
Visio整体移动
查看>>
annex-b格式
查看>>
PING的过程解析
查看>>
在请求中使用XML Publisher生成文件报错
查看>>
aJax提交——服务端不能用request存储数据,session存数据客户端可以接收到
查看>>
Lucene中的合并因子mergeFactor
查看>>
C++ 关联容器
查看>>
使用NServiceBus开发分布式应用
查看>>
通用的C#导出Excel 支持2003及2007以上版本
查看>>
ER模型
查看>>
对象锁与线程的理解(摘录,个人比较好理解的文章)
查看>>
进程监控工具supervisor 启动Mongodb
查看>>
React Native 重新建项目遇到的一些问题
查看>>
dede使用方法---如何调用指定栏目
查看>>