iOS Charting Documentation - SciChart iOS Charts SDK v3.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 (readonly, nonatomic, class) SCIFontStyle *_Nonnull defaultFontStyle;

    Swift

    class var `default`: SCIFontStyle { get }
  • Defines the descriptor for the font.

    Declaration

    Objective-C

    @property (readonly, nonatomic) 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 (readonly, nonatomic) unsigned int colorCode;

    Swift

    var colorCode: UInt32 { get }
  • Gets text color as UIColor.

    Declaration

    Objective-C

    @property (readonly, nonatomic) 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 UILabel with this SCIFontStyle values.

    Declaration

    Objective-C

    - (void)initUILabel:(nonnull UILabel *)label;

    Swift

    func initUILabel(_ label: UILabel)

    Parameters

    label

    The UILabel to init.