FontAwesomeKitCustomFont
December 4, 2013 ยท View on GitHub
Demonstrates how to use custom icon font with FontAwesomeKit.
How To Run This Demo
Clone this repo, cd to the root folder of the project in command line, run pod install to install dependencies with CocoaPods, then open FontAwesomeKitCustomFont.xcworkspace.
How does it work
- Add
pod 'FontAwesomeKit/Core'to the Podfile then runpod installto install the core of FontAwesomeKit. The core subspec contains 2 files:FAKIcon.handFAKIcon.m. If you prefer manually installation instead of CocoaPods, add these 2 files to your project. - Add you custom font to your project, make sure they are added to the build target.
- Subclass
FAKIcon, implement+ (UIFont *)iconFontWithSize:(CGFloat)size.+ allIconsis optional, but the- iconNamemethod ofFAKIconsubclasses relies on it.
Where To Start Reading
The FCFCustomIcon.m file.