commit | 618575c127931d0841e42d0507dd6f6f096fa9af | [log] [tgz] |
---|---|---|
author | Randall Li <randall.li@gmail.com> | Fri Jan 06 18:00:57 2017 |
committer | Adrian Secord <ajsecord@google.com> | Fri Jan 06 18:00:57 2017 |
tree | dbc102e02c4d26923bce8b1227714c876fecda02 | |
parent | e9b86479540ee3a200ade154f907fac889865c72 [diff] |
Release 1.1.2 (#9) * Bumped version to 1.1.0 * corrected headers in change log * fixed import for pod lib lint * Bumped version to 1.1.1 * Added UIWebView example that uses the local roboto fonts. (#5) * Added local UIWebView example that uses the local roboto fonts. * Refined UIWebView example that uses the local roboto fonts. * lint * Make import more generic (#8) Prior to this change, the path only worked with CocoaPods. for linting the podspec use `pod lib lint --use-libraries` * Bump version to 1.1.2
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)