session-ios/Signal/src/util/UIFont+OWS.m

46 lines
1.1 KiB
Mathematica
Raw Normal View History

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";
static NSString *const kHelveticaNeueRegular = @"HelveticaNeue";
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];
}
+ (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