commit | bc63eabbbd1e14cee0779b05827e08db2e413553 | [log] [tgz] |
---|---|---|
author | Robert Moore <rsmoore@google.com> | Wed Apr 10 14:25:17 2019 |
committer | GitHub <noreply@github.com> | Wed Apr 10 14:25:17 2019 |
tree | e1df76cf6f0799a3c16b53299efb3cfc86280a65 | |
parent | 47af7f8e864157b580b517aa03ebbb6af238a2b1 [diff] |
Revert "Remove unneeded fonts and unhint others. (#17)" (#19) This reverts commit 199096df714b118d19ccd550359f6acab4f02339.
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)