Files
react-native-svg/ios/Text/FontWeight.h
2017-08-24 12:42:18 +03:00

31 lines
698 B
Objective-C

#import <Foundation/Foundation.h>
#ifndef FontWeight_h
#define FontWeight_h
NS_ENUM(NSInteger, FontWeight) {
FontWeightNormal,
FontWeightBold,
FontWeightBolder,
FontWeightLighter,
FontWeight100,
FontWeight200,
FontWeight300,
FontWeight400,
FontWeight500,
FontWeight600,
FontWeight700,
FontWeight800,
FontWeight900,
FontWeightDEFAULT = FontWeightNormal,
};
static NSString* const FontWeightStrings[] = {@"Normal", @"Bold", @"Bolder", @"Lighter", @"100", @"200", @"300", @"400", @"500", @"600", @"700", @"800", @"900", nil};
NSString* FontWeightToString( enum FontWeight fw );
enum FontWeight FontWeightFromString( NSString* s );
#endif