Latest 0.0.1
Homepage https://github.com/hundredlee/HDIconFont
License MIT
Platforms ios 9.0
Authors

1.首先引入在plist里面引入ttf文件

2.然后将iconfont.ttf文件拖进项目中

3.加载头文件

#import "HDIconFont.h"

4.注册iconfont

//HDIconFont Register
    [[HDIconFont instance] initWithConfig:@{
                                            @(HDFontPath):@"iconfont.ttf",
                                            @(HDFontName):@"iconfont",
                                            @(HDFontString):
                                                @{
                                                    @"tab_home_icon":@"U0000e603"
                                                    }
                                            }];

5.调用函数

HDIconImageMake(@"tab_home_icon",[UIColor orangeColor],25);

6.效果图

Latest podspec

{
    "name": "HDIconFont",
    "version": "0.0.1",
    "summary": "A simple library for iconfont to create a image!",
    "description": "```objectivecn#import "HDIconFont.h"n```nn```objectivecn//HDIconFont Registern    [[HDIconFont instance] initWithConfig:@{n                                            @(HDFontPath):@"iconfont.ttf",n                                            @(HDFontName):@"iconfont",n                                            @(HDFontString):n                                                @{n                                                    @"tab_home_icon":@"U0000e603"n                                                    }n                                            }];n```nn```objectivecnHDIconImageMake(@"tab_home_icon",[UIColor orangeColor],25);n```",
    "homepage": "https://github.com/hundredlee/HDIconFont",
    "license": "MIT",
    "authors": {
        "hundredlee": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/hundredlee/HDIconFont.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "HDIconFont",
        "HDIconFontDemo/HDIconFont.{h,m}"
    ]
}

Pin It on Pinterest

Share This