commit | 0ad5e00df9242efca3b1f7b1594d7e479cb23e7a | [log] [tgz] |
---|---|---|
author | Chrisna Aing <ccrazy88@users.noreply.github.com> | Wed Apr 10 14:19:14 2019 |
committer | Cody Weaver <codyleeweaver@gmail.com> | Wed Apr 10 14:19:14 2019 |
tree | aba4898ed25bd38be1fd43d6a7fce364be9337f2 | |
parent | 4aa51e906e5671c71d24e991f1f10d782a58409f [diff] |
Remove extra `self = [super init]`. (#15) Not sure if this is done on purpose, but in case it isn't, this PR removes it.
The Roboto Font Loader lazy loads the Roboto font.
To add this component to your Xcode project using CocoaPods, add the following to your Podfile
:
pod 'MDFRobotoFontLoader'
Then, run the following command:
pod install
The Roboto Font Loader provides APIs for getting the Roboto Fonts. Consider using the Typography Material Component for iOS font styles recommended by Material spec.
Before using Roboto Font Loader, you'll need to import it:
#import "MaterialRobotoFontLoader.h"
import MDFRobotoFontLoader
The Roboto Font Loader Component depends on the FontDiskLoader Component.
UIFont *font = [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16];
let myFont:UIFont = MDFRobotoFontLoader.sharedInstance()regularFontOfSize(16)