Skip to content

Instantly share code, notes, and snippets.

@veritech
Created July 25, 2010 23:07
Show Gist options
  • Save veritech/489974 to your computer and use it in GitHub Desktop.
Save veritech/489974 to your computer and use it in GitHub Desktop.
#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
#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