-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathText.h
More file actions
executable file
·26 lines (18 loc) · 759 Bytes
/
Text.h
File metadata and controls
executable file
·26 lines (18 loc) · 759 Bytes
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
#import <CoreText/CoreText.h>
#import <UIKit/UIKit.h>
@interface Text : UIView
+ (Text *) textWithText:(NSString *)text;
@property (nonatomic, strong) UIFont *font;
@property (nonatomic, copy) NSString *text;
@property (nonatomic, assign) UITextAlignment textAlignment;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat lineHeight;
@property (nonatomic, assign) CGFloat leading;
@property (nonatomic, assign) CGFloat kerning;
@property (nonatomic, readonly) CGFloat capHeight;
@property (nonatomic, readonly) CGFloat ascent;
@property (nonatomic, readonly) CGFloat descent;
- (CGSize) sizeThatFitsWidth:(CGFloat)width;
- (CGSize) sizeThatHasWidth:(CGFloat)width;
@end