mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 08:45:00 +00:00
Prefix iOS symbols with RNSVG
fixes https://github.com/react-native-community/react-native-svg/issues/603
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
#import "RNSVGTextProperties.h"
|
||||
#import "RNSVGPropHelper.h"
|
||||
|
||||
@interface RNSVGFontData : NSObject {
|
||||
@public
|
||||
double fontSize;
|
||||
NSString * fontSize_;
|
||||
NSString *fontFamily;
|
||||
enum RNSVGFontStyle fontStyle;
|
||||
NSDictionary * fontData;
|
||||
enum RNSVGFontWeight fontWeight;
|
||||
NSString *fontFeatureSettings;
|
||||
enum RNSVGFontVariantLigatures fontVariantLigatures;
|
||||
enum RNSVGTextAnchor textAnchor;
|
||||
enum RNSVGTextDecoration textDecoration;
|
||||
double kerning;
|
||||
double wordSpacing;
|
||||
double letterSpacing;
|
||||
bool manualKerning;
|
||||
}
|
||||
|
||||
+ (instancetype)Defaults;
|
||||
|
||||
+ (double)toAbsoluteWithNSString:(NSString *)string
|
||||
scale:(double)scale
|
||||
fontSize:(double)fontSize;
|
||||
|
||||
+ (instancetype)initWithNSDictionary:(NSDictionary *)font
|
||||
parent:(RNSVGFontData *)parent
|
||||
scale:(double)scale;
|
||||
|
||||
@end
|
||||
|
||||
#define RNSVGFontData_DEFAULT_FONT_SIZE 12.0
|
||||
Reference in New Issue
Block a user