Prepare for new GlyphContext.

This commit is contained in:
Mikael Sand
2017-08-15 19:50:50 +03:00
parent 1c1e8a860b
commit f1657d9ddf
9 changed files with 141 additions and 40 deletions
-6
View File
@@ -9,7 +9,6 @@
#import <Foundation/Foundation.h>
#import "RNSVGGroup.h"
#import "RNSVGTextAnchor.h"
#import "RNSVGGlyphContext.h"
@interface RNSVGText : RNSVGGroup
@@ -18,15 +17,10 @@
@property (nonatomic, strong) NSArray<NSString *> *deltaY;
@property (nonatomic, strong) NSArray<NSString *> *positionX;
@property (nonatomic, strong) NSArray<NSString *> *positionY;
@property (nonatomic, strong) NSDictionary *font;
- (RNSVGText *)getTextRoot;
- (void)releaseCachedPath;
- (CGPathRef)getGroupPath:(CGContextRef)context;
- (RNSVGGlyphContext *)getGlyphContext;
- (void)pushGlyphContext;
- (void)popGlyphContext;
- (CTFontRef)getFontFromContext;
- (CGPoint)getGlyphPointFromContext:(CGPoint)offset glyphWidth:(CGFloat)glyphWidth;