# material-roboto-font-loader-ios **Repository Path**: mirrors_chromium_googlesource/material-roboto-font-loader-ios ## Basic Information - **Project Name**: material-roboto-font-loader-ios - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: stable - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-19 - **Last Updated**: 2025-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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: ~~~ bash 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 ~~~ objc #import "MaterialRobotoFontLoader.h" ~~~ #### Swift ~~~ swift import MDFRobotoFontLoader ~~~ ### Dependencies The Roboto Font Loader Component depends on the FontDiskLoader Component. #### Objective-C ~~~ objc UIFont *font = [[MDFRobotoFontLoader sharedInstance] regularFontOfSize:16]; ~~~ #### Swift ~~~ swift let myFont:UIFont = MDFRobotoFontLoader.sharedInstance()regularFontOfSize(16) ~~~