2024-05-02 15:08:24 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2024-11-20 14:28:34 +00:00
|
|
|
#import "RNSVGUIKit.h"
|
|
|
|
|
2024-05-02 15:08:24 +00:00
|
|
|
#import "RNSVGPropHelper.h"
|
2024-11-20 14:28:34 +00:00
|
|
|
#import "RNSVGTextProperties.h"
|
2024-05-02 15:08:24 +00:00
|
|
|
|
|
|
|
@interface RNSVGFontData : NSObject {
|
2024-11-20 14:28:34 +00:00
|
|
|
@public
|
|
|
|
CGFloat fontSize;
|
|
|
|
NSString *fontSize_;
|
|
|
|
NSString *fontFamily;
|
|
|
|
enum RNSVGFontStyle fontStyle;
|
|
|
|
NSDictionary *fontData;
|
|
|
|
enum RNSVGFontWeight fontWeight;
|
|
|
|
int absoluteFontWeight;
|
|
|
|
NSString *fontFeatureSettings;
|
|
|
|
enum RNSVGFontVariantLigatures fontVariantLigatures;
|
|
|
|
enum RNSVGTextAnchor textAnchor;
|
|
|
|
enum RNSVGTextDecoration textDecoration;
|
|
|
|
CGFloat kerning;
|
|
|
|
CGFloat wordSpacing;
|
|
|
|
CGFloat letterSpacing;
|
|
|
|
bool manualKerning;
|
2024-05-02 15:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (instancetype)Defaults;
|
|
|
|
|
2024-11-20 14:28:34 +00:00
|
|
|
+ (CGFloat)toAbsoluteWithNSString:(NSString *)string fontSize:(CGFloat)fontSize;
|
2024-05-02 15:08:24 +00:00
|
|
|
|
2024-11-20 14:28:34 +00:00
|
|
|
+ (instancetype)initWithNSDictionary:(NSDictionary *)font parent:(RNSVGFontData *)parent;
|
2024-05-02 15:08:24 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#define RNSVGFontData_DEFAULT_FONT_SIZE 12.0
|