FontStyle
public final class FontStyle
Represents a particular style (bold, italic, condensed) of a typeface.
-
Undocumented
Declaration
Swift
public convenience init() -
Creates a new SKFontStyle with the specified weight, width and slant.
Declaration
Swift
public init(weight: Int32, width: Int32, slant: FontStyleSlant) -
Creates a new SKFontStyle with the specified weight, width and slant.
Declaration
Swift
public init(weight: FontStyleWeight, width: FontStyleWidth, slant: FontStyleSlant) -
Gets the weight of this style.
Declaration
Swift
public var weight: Int32 { get } -
Gets the width of this style.
Declaration
Swift
public var width: Int32 { get } -
Gets the slant of this style.
Declaration
Swift
public var slant: FontStyleSlant { get } -
Gets a new normal (upright and not bold) font style.
Declaration
Swift
public static var normal: FontStyle -
Gets a new upright font style that is bold.
Declaration
Swift
public static var bold: FontStyle -
Gets a new italic font style.
Declaration
Swift
public static var italic: FontStyle -
Gets a new italic font style that is bold.
Declaration
Swift
public static var boldItalic: FontStyle
View on GitHub
Install in Dash
FontStyle Class Reference