HLLFont 0.1

HLLFont 0.1

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

Maintained by Unclaimed.



  • 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]];