/CLFont

手机端字体适配

Primary LanguageObjective-CMIT LicenseMIT

CLFont

CI Status Version License Platform

Example

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

Requirements

  • 使用方法
_nameLabel.font = CLUIFontMake(20);
_nameLabel.font = CLUIFontBoldMake(20);
_nameLabel.font = CLUIFontMediumMake(20);
_nameLabel.font = CLFontsProvidedMake(@"Copperplate",20 )
_nameLabel.font = CLUIFilePathFontMake([[NSBundle mainBundle] pathForResource:@"DFKaiGB-W5" ofType:@"otf"],60);

Installation

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

pod 'CLFont'

Author

cqzhong

License

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