-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOMFontNotFoundException.m
32 lines (32 loc) · 1.72 KB
/
OMFontNotFoundException.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//==================================================================================================================================
// OMFontNotFoundException.m
//==================================================================================================================================
#import "OMFontNotFoundException.h"
//==================================================================================================================================
@implementation OMFontNotFoundException
//----------------------------------------------------------------------------------------------------------------------------------
+ exceptionWithClass:(Class)exClass fontName:(OFString *)fontName
{
return [[[self alloc] initWithClass:exClass fontName:fontName] autorelease];
}
//----------------------------------------------------------------------------------------------------------------------------------
- initWithClass:(Class)exClass fontName:(OFString *)fontName
{
self = [super initWithClass: exClass];
_fontName = [fontName copy];
return self;
}
//----------------------------------------------------------------------------------------------------------------------------------
- (OFString *)fontName
{
return _fontName;
}
//----------------------------------------------------------------------------------------------------------------------------------
- (OFString *)description
{
if(description != nil) return description;
return @"Font Family Not Found";
}
//----------------------------------------------------------------------------------------------------------------------------------
@end
//==================================================================================================================================