commit | 47af7f8e864157b580b517aa03ebbb6af238a2b1 | [log] [tgz] |
---|---|---|
author | Robert Moore <rsmoore@google.com> | Wed Apr 10 14:22:54 2019 |
committer | GitHub <noreply@github.com> | Wed Apr 10 14:22:54 2019 |
tree | 705e444a501a4d029d36d86c634b78fc71d54dcb | |
parent | 199096df714b118d19ccd550359f6acab4f02339 [diff] |
Revert "Remove extra `self = [super init]`. (#15)" (#18) This reverts commit 0ad5e00df9242efca3b1f7b1594d7e479cb23e7a.
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)