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;
  • 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;
  • Defines the descriptor for the font.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIFontDescriptor *_Nonnull fontDescriptor;
  • Gets text color as hex color code in the following color format 0xAARRGGBB.

    Declaration

    Objective-C

    @property (nonatomic, readonly) unsigned int colorCode;
  • Gets text color as UIColor.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIColor *_Nonnull color;
  • Creates an instance of SCIFontStyle with specified arguments.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTextColor:(nonnull UIColor *)textColor;

    Parameters

    textColor

    The text color.

  • Creates an instance of SCIFontStyle with specified arguments.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTextColorCode:(unsigned int)textColor;

    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;

    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;

    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;

    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;

    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;

    Parameters

    label

    The Label to init.