iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIFontStyle
@interface SCIFontStyle : SCIStyle
Defines a class for specifying of 2D font style used to draw text on the ISCIRenderSurface
.
-
Defines the default font style.
Declaration
Objective-C
@property (class, nonatomic, readonly) SCIFontStyle *_Nonnull DEFAULT;
Swift
class var `default`: SCIFontStyle { get }
-
Deprecated
SCIFontStyle.defaultFontStyle is deprecated. Please use SCIFontStyle.DEFAULT instead
Defines the default font style.
Declaration
Objective-C
@property (class, nonatomic, readonly) __deprecated_msg("SCIFontStyle.defaultFontStyle is deprecated. Please use " "SCIFontStyle.DEFAULT instead") SCIFontStyle *defaultFontStyle;
Swift
class var `default`: SCIFontStyle { get }
-
Defines the descriptor for the font.
Declaration
Objective-C
@property (nonatomic, readonly) UIFontDescriptor *_Nonnull fontDescriptor;
Swift
var fontDescriptor: UIFontDescriptor { get }
-
Gets text color as hex color code in the following color format
0xAARRGGBB
.Declaration
Objective-C
@property (nonatomic, readonly) unsigned int colorCode;
Swift
var colorCode: UInt32 { get }
-
Gets text color as UIColor.
Declaration
Objective-C
@property (nonatomic, readonly) UIColor *_Nonnull color;
Swift
var color: UIColor { get }
-
Creates an instance of
SCIFontStyle
with specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithTextColor:(nonnull UIColor *)textColor;
Swift
init(textColor: UIColor)
Parameters
textColor
The text color.
-
Creates an instance of
SCIFontStyle
with specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithTextColorCode:(unsigned int)textColor;
Swift
init(textColorCode textColor: UInt32)
Parameters
textColor
The text color.
-
Creates an instance of
SCIFontStyle
with specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithFontSize:(float)fontSize andTextColor:(nonnull UIColor *)textColor;
Swift
init(fontSize: Float, andTextColor textColor: UIColor)
Parameters
fontSize
The value which determines the font size.
textColor
The text color code.
-
Creates an instance of
SCIFontStyle
with specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithFontSize:(float)fontSize andTextColorCode:(unsigned int)textColor;
Swift
init(fontSize: Float, andTextColorCode textColor: UInt32)
Parameters
fontSize
The value which determines the font size.
textColor
The text color.
-
Creates an instance of
SCIFontStyle
with specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithFontDescriptor: (nonnull UIFontDescriptor *)fontDescriptor andTextColor:(nonnull UIColor *)textColor;
Swift
init(fontDescriptor: UIFontDescriptor, andTextColor textColor: UIColor)
Parameters
fontDescriptor
The font descriptor value.
textColor
The text color.
-
Creates an instance of
SCIFontStyle
with specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithFontDescriptor: (nonnull UIFontDescriptor *)fontDescriptor andTextColorCode:(unsigned int)textColor;
Swift
init(fontDescriptor: UIFontDescriptor, andTextColorCode textColor: UInt32)
Parameters
fontDescriptor
The font descriptor value.
textColor
The text color code.
-
Initialises a Label with this
SCIFontStyle
values.Declaration
Objective-C
- (void)initUILabel:(nonnull UILabel *)label;
Swift
func initUILabel(_ label: UILabel)
Parameters
label
The Label to init.