Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.72 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.72 KB

LatoFont

Twitter License CocoaPods

Brings Lato font to iOS.

License

Source code of this project is available under the standard MIT license. Please see the license file.

Lukasz Dziedzic holds copyright to the Lato font which is licensed under the SIL Open Font License.

Usage

#import <LatoFont/UIFont+Lato.h>

@implementation ExampleVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    CGFloat size = 17.0;
    
    self.hairlineLabel.font = [UIFont latoHairlineFontOfSize:size];
    self.hairlineItalicLabel.font = [UIFont latoHairlineItalicFontOfSize:size];
    
    self.lightLabel.font = [UIFont latoLightFontOfSize:size];
    self.lightItalicLabel.font = [UIFont latoLightItalicFontOfSize:size];
    
    self.regularLabel.font = [UIFont latoFontOfSize:size];
    self.italicLabel.font = [UIFont latoItalicFontOfSize:size];
    
    self.boldLabel.font = [UIFont latoBoldFontOfSize:size];
    self.boldItalicLabel.font = [UIFont latoBoldItalicFontOfSize:size];
    
    self.blackLabel.font = [UIFont latoBlackFontOfSize:size];
    self.blackItalicLabel.font = [UIFont latoBlackItalicFontOfSize:size];
}

@end