HLLFont 0.1

HLLFont 0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total2,704
Week0
Month15

Installs

Apps6
Test Targets1
powered by Segment

GitHub

Stars0
Watchers1
Forks1
Issues0
Contributors2
Pull Requests0

Code

Files2
LOCLines of Code 24


  • By
  • could_hll

Set UIFont style(Bold,Italic,Light,Oblique and combo).

  • HLLFont extends UIFont using category.
  • Use 1 method to set style
  • Use combo style, like (BoldOblique)
  • If not find font, return nil.
+ (UIFont*)fontWithFont:(UIFont*)font style:(NSString*)style.

Installation

Manually

Important note if your project doesn't use ARC: you must add the -fobjc-arc compiler flag to UIFont+HLLFont.m in Target Settings > Build Phases > Compile Sources.

  • Drag the HLLFont folder into your project.
  • Import UIFont+HLLFont.h

Usage

(see sample Xcode project in /HLLFontDemo)

Setting Font Bold Style

font=[UIFont fontWithFont:font style:UIFONT_BOLD];

Setting Font Combo Style

_For exmaple:setting combo style with bold and oblique

font=[UIFont fontWithFont:font style:[UIFONT_BOLD stringByAppendingString:UIFONT_OBLIQUE]];