MDFRobotoFontLoader 1.3.0

MDFRobotoFontLoader 1.3.0

TestsTested
LangLanguage Obj-CObjective C
License Apache 2
ReleasedLast Release Mar 2017

Maintained by Randall Li.


Downloads

Total1,255
Week0
Month111

Installs

Apps65
Pod Tries4
Test Targets1
powered by Segment

GitHub

Stars3
Watchers3
Forks4
Issues2
Contributors2
Pull Requests1

Code

Files5
LOCLines of Code 370


  • By
  • The Material Foundation Authors

Roboto Font Loader

The Roboto Font Loader lazy loads the Roboto font.

Material Design Specifications

Installation

Requirements

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

Usage

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.

Importing

Before using Roboto Font Loader, you'll need to import it:

Objective-C

#import "MaterialRobotoFontLoader.h"

Swift

import MDFRobotoFontLoader

Dependencies

The Roboto Font Loader Component depends on the FontDiskLoader Component.

Objective-C

UIFont *font = [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16];

Swift

let myFont:UIFont = MDFRobotoFontLoader.sharedInstance()regularFontOfSize(16)