Clone this repo:
  1. bc63eab Revert "Remove unneeded fonts and unhint others. (#17)" (#19) by Robert Moore · 4 years, 8 months ago stable
  2. 47af7f8 Revert "Remove extra `self = [super init]`. (#15)" (#18) by Robert Moore · 4 years, 8 months ago
  3. 199096d Remove unneeded fonts and unhint others. (#17) by dmaclach · 4 years, 8 months ago
  4. 0ad5e00 Remove extra `self = [super init]`. (#15) by Chrisna Aing · 4 years, 8 months ago
  5. 4aa51e9 Create release notes. (#14) by Randall Li · 7 years ago

Roboto Font Loader

The Roboto Font Loader lazy loads the Roboto font.

Material Design Specifications



  • Xcode 7.0 or higher.
  • iOS SDK version 7.0 or higher.

Installation with CocoaPods

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)