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;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
SCIFontStylewith specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithTextColor:(nonnull UIColor *)textColor;Swift
init(textColor: UIColor)Parameters
textColorThe text color.
-
Creates an instance of
SCIFontStylewith specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithTextColorCode:(unsigned int)textColor;Swift
init(textColorCode textColor: UInt32)Parameters
textColorThe text color.
-
Creates an instance of
SCIFontStylewith specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithFontSize:(float)fontSize andTextColor:(nonnull UIColor *)textColor;Swift
init(fontSize: Float, andTextColor textColor: UIColor)Parameters
fontSizeThe value which determines the font size.
textColorThe text color code.
-
Creates an instance of
SCIFontStylewith specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithFontSize:(float)fontSize andTextColorCode:(unsigned int)textColor;Swift
init(fontSize: Float, andTextColorCode textColor: UInt32)Parameters
fontSizeThe value which determines the font size.
textColorThe text color.
-
Creates an instance of
SCIFontStylewith specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithFontDescriptor: (nonnull UIFontDescriptor *)fontDescriptor andTextColor:(nonnull UIColor *)textColor;Swift
init(fontDescriptor: UIFontDescriptor, andTextColor textColor: UIColor)Parameters
fontDescriptorThe font descriptor value.
textColorThe text color.
-
Creates an instance of
SCIFontStylewith specified arguments.Declaration
Objective-C
- (nonnull instancetype)initWithFontDescriptor: (nonnull UIFontDescriptor *)fontDescriptor andTextColorCode:(unsigned int)textColor;Swift
init(fontDescriptor: UIFontDescriptor, andTextColorCode textColor: UInt32)Parameters
fontDescriptorThe font descriptor value.
textColorThe text color code.
-
Initialises a Label with this
SCIFontStylevalues.Declaration
Objective-C
- (void)initUILabel:(nonnull UILabel *)label;Swift
func initUILabel(_ label: UILabel)Parameters
labelThe Label to init.
View on GitHub