zoukankan      html  css  js  c++  java
  • [翻译] 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.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.

  • 相关阅读:
    码农提高工作效率 (转)
    Python快速教程 尾声
    C#基础——谈谈.NET异步编程的演变史
    [C#]動態叫用Web Service
    零极限 核心中的核心和详解
    项目经理应该把30%的时间用在编程上
    高效能程序员的七个习惯
    我们如何进行代码审查
    工作经常使用的SQL整理,实战篇(二)
    C# Socket网络编程精华篇 (转)
  • 原文地址:https://www.cnblogs.com/YouXianMing/p/4244464.html
Copyright © 2011-2022 走看看