2014-11-24 21:51:43 +01:00
|
|
|
//
|
|
|
|
// UIFont+OWS.m
|
|
|
|
// Signal
|
|
|
|
//
|
|
|
|
// Created by Dylan Bourgeois on 25/11/14.
|
|
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
static NSString *const kHelveticaNeueThin = @"HelveticaNeue-Thin";
|
|
|
|
static NSString *const kHelveticaNeueLight = @"HelveticaNeue-Light";
|
2015-01-14 22:30:01 +01:00
|
|
|
static NSString *const kHelveticaNeueRegular = @"HelveticaNeue";
|
2014-12-06 19:26:01 +01:00
|
|
|
static NSString *const kHelveticaNeueMedium = @"HelveticaNeue-Medium";
|
2014-11-24 21:51:43 +01:00
|
|
|
static NSString *const kHelveticaNeueBold = @"HelveticaNeue-Bold";
|
|
|
|
|
|
|
|
#import "UIFont+OWS.h"
|
|
|
|
|
|
|
|
@implementation UIFont (OWS)
|
|
|
|
|
|
|
|
+ (UIFont*) ows_thinFontWithSize:(CGFloat)size
|
|
|
|
{
|
|
|
|
return [UIFont fontWithName:kHelveticaNeueThin size:size];
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (UIFont*) ows_lightFontWithSize:(CGFloat)size
|
|
|
|
{
|
|
|
|
return [UIFont fontWithName:kHelveticaNeueLight size:size];
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (UIFont*) ows_regularFontWithSize:(CGFloat)size
|
|
|
|
{
|
|
|
|
return [UIFont fontWithName:kHelveticaNeueRegular size:size];
|
|
|
|
}
|
|
|
|
|
2015-01-14 22:30:01 +01:00
|
|
|
|
2014-12-06 19:26:01 +01:00
|
|
|
+ (UIFont*) ows_mediumFontWithSize:(CGFloat)size
|
|
|
|
{
|
|
|
|
return [UIFont fontWithName:kHelveticaNeueMedium size:size];
|
|
|
|
}
|
|
|
|
|
2014-11-24 21:51:43 +01:00
|
|
|
+ (UIFont*) ows_boldFontWithSize:(CGFloat)size
|
|
|
|
{
|
|
|
|
return [UIFont fontWithName:kHelveticaNeueBold size:size];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|