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;
}
LWDynamicFont is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LWDynamicFont'
Carthage
github "luowei/LWDrawboard"
luowei, luowei@wodedata.com
LWDynamicFont is available under the MIT license. See the LICENSE file for more info.