GithubHelp home page GithubHelp logo

runt18 / material-roboto-font-loader-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from material-foundation/material-roboto-font-loader-ios

0.0 1.0 0.0 771 KB

License: Apache License 2.0

Ruby 2.33% Objective-C 97.67%

material-roboto-font-loader-ios's Introduction

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.

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

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)

material-roboto-font-loader-ios's People

Contributors

arcank avatar randallli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.