Created
July 25, 2010 23:07
-
-
Save veritech/489974 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#define kApplicationFontSize 14.0f | |
#define kApplicationBoldFontName @"HelveticaNeue-Bold" | |
#define kApplicationFontName @"HelveticaNeue" | |
@interface UIFont(custom) | |
+(UIFont*) applicationFont; | |
+(UIFont*) boldApplicationFont; | |
+(UIFont*) applicationFontWithSize:(float) aSize; | |
+(UIFont*) boldApplicationFontWithSize:(float) aSize; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "UIFont+additions.h" | |
@implementation UIFont(custom) | |
+(UIFont*) applicationFont | |
{ | |
return [UIFont fontWithName:kApplicationFontName size:kApplicationFontSize]; | |
} | |
+(UIFont*) boldApplicationFont | |
{ | |
return [UIFont fontWithName:kApplicationBoldFontName size:kApplicationFontSize]; | |
} | |
+(UIFont*) applicationFontWithSize:(float) aSize{ | |
return [UIFont fontWithName:kApplicationFontName size: aSize]; | |
} | |
+(UIFont*) boldApplicationFontWithSize:(float) aSize | |
{ | |
return [UIFont fontWithName:kApplicationBoldFontName size: aSize]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment