forked from jonasschnelli/I7CoreTextExample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathI7CoreTextView.h
More file actions
36 lines (28 loc) · 730 Bytes
/
Copy pathI7CoreTextView.h
File metadata and controls
36 lines (28 loc) · 730 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
27
28
29
30
31
32
33
34
35
36
//
// I7CoreTextView.h
// CoreTextExample
//
// Created by Jonas Schnelli on 18.05.10.
// Copyright 2010 include7 AG. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreText/CoreText.h>
enum I7CoreTextViewTextType {
I7CoreTextViewTextTypeFonts,
I7CoreTextViewTextTypeParagraph
};
@interface I7CoreTextView : UIView {
CFMutableArrayRef fontsMutable;
CGFloat fontSize;
CGFloat height;
enum I7CoreTextViewTextType textType;
CFMutableAttributedStringRef attrString;
}
@property (assign) CGFloat fontSize;
@property (assign) enum I7CoreTextViewTextType textType;
@property (readonly) CGFloat height;
- (void)loadMutableFonts;
- (void)calculateHeight;
- (void)buildText;
- (void)localInit;
@end