-
Notifications
You must be signed in to change notification settings - Fork 0
/
FontStyle.h
executable file
·41 lines (30 loc) · 1023 Bytes
/
FontStyle.h
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
33
34
35
36
37
38
39
40
41
//
// FontStyle.h
// JMML
//
#import <Foundation/Foundation.h>
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
@interface FontStyle : NSObject {
NSString *familyName;
NSString *actualFontName;
NSString *displayName;
int size;
UIColor *color;
long RGBColor;
}
@property (retain) NSString *familyName;
@property (retain) NSString *displayName;
@property (retain) NSString *actualFontName;
@property (assign) int size;
@property (retain,readonly) UIColor *color;
@property (assign) long RGBColor;
- (long) hexToLong: (NSString*) hexstring;
- (NSString *) hexcolor;
- (BOOL) hasSymbolicTrait:(NSString *)fontName trait:(unsigned) trait;
- (BOOL) isBold:(NSString *)fontName;
- (BOOL) isItalic:(NSString *)fontName;
- (BOOL) isBold;
- (BOOL) isItalic;
- (BOOL) isEnglish:(NSString *)fontName;
- (void) UpdateStyleTraits:(BOOL) bold italic:(BOOL)italic;
@end