Skip to content

Latest commit

 

History

History

Typography

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Typography

Typography provides methods for displaying text in [material styles] (https://www.google.com/design/spec/style/typography.html). Mostly centered around fonts and their opacity.

Requirements

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

Usage

#import "MaterialTypography.h"

UILabel *label = [[UILabel alloc] init];
label.text = @"This is sometext";
label.font = [MDCTypography titleFont];
label.alpha = [MDCTypography titleFontOpacity];

[label sizeToFit];
[self.view addSubview:label];

Font sizes

type size Source: [Typography scale spec] (https://www.google.com/design/spec/style/typography.html#typography-styles).

Font opacities

type opacity Source: [Typography opacity spec] (https://www.google.com/design/spec/style/typography.html#typography-other-typographic-guidelines).