/LWDynamicFont

LWDynamicFont,字体动态加载器,支持从服务器端动态下载字体,并即时加载到当前的App里直接使用。

Primary LanguageObjective-CMIT LicenseMIT

LWDynamicFont

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

if (![LWFontManager isAvaliableFont:fontName]) {  //如果字体不可用
    //todo: something
    
    //下载字体
    [LWFontManager downloadCustomFontWithFontName:fontName URLString:vc.fontURLMap[fontName]
                                showProgressBlock:^{
                                    Log(@"=====开始下载字体");
                                }
                              updateProgressBlock:^(float progress) {
                                  Log(@"======字体下载:%f", progress);
                              }
                                    completeBlock:^{
                                        Log(@"======字体下载完成");
                                    }];

    return;
}

Requirements

Installation

LWDynamicFont is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LWDynamicFont'

Carthage

github "luowei/LWDrawboard"

Author

luowei, luowei@wodedata.com

License

LWDynamicFont is available under the MIT license. See the LICENSE file for more info.