mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 23:16:13 +00:00
Fix text on a path rendering accuracy
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
#import <React/UIView+React.h>
|
||||
#import <CoreText/CoreText.h>
|
||||
#import "FontData.h"
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
//
|
||||
// Generated by the J2ObjC translator. DO NOT EDIT!
|
||||
// source: GlyphContext.java
|
||||
//
|
||||
|
||||
#import "GlyphContext.h"
|
||||
#import <React/RCTFont.h>
|
||||
#import "RNSVGNode.h"
|
||||
|
||||
@@ -801,6 +801,7 @@ CGFloat getTextAnchorOffset(enum TextAnchor textAnchor, CGFloat width)
|
||||
//_bezierTransformer = [textPath getBezierTransformer];
|
||||
textPathPath = [textPath getPath];
|
||||
_path = [UIBezierPath bezierPathWithCGPath:[textPathPath getPath:nil]];
|
||||
_path = [_path bezierPathByFlatteningPathAndImmutable:YES];
|
||||
pathLength = [_path length];
|
||||
return NO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user