mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
42 lines
1.0 KiB
Objective-C
42 lines
1.0 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "FontStyle.h"
|
|
#import "FontVariantLigatures.h"
|
|
#import "FontWeight.h"
|
|
#import "PropHelper.h"
|
|
#import "TextAnchor.h"
|
|
#import "TextDecoration.h"
|
|
|
|
@interface FontData : NSObject {
|
|
@public
|
|
double fontSize;
|
|
NSString * fontSize_;
|
|
NSString *fontFamily;
|
|
enum FontStyle fontStyle;
|
|
NSDictionary * fontData;
|
|
enum FontWeight fontWeight;
|
|
NSString *fontFeatureSettings;
|
|
enum FontVariantLigatures fontVariantLigatures;
|
|
enum TextAnchor textAnchor;
|
|
enum TextDecoration 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:(FontData *)parent
|
|
scale:(double)scale;
|
|
|
|
@end
|
|
|
|
#define FontData_DEFAULT_FONT_SIZE 12.0
|