FontStyleSet
public final class FontStyleSet
Represets the set of styles for a particular font family.
-
Creates an empty font style set
Declaration
Swift
public init()
-
Returns the number of font stypes in this set.
Declaration
Swift
public var count: Int32 { get }
-
Returns an array of FontStyles in this set
Declaration
Swift
public var styles: [FontStyle] { get }
-
Creates a new SKTypeface with a style that is the closest match to the specified font style.
Return Value
the typeface if found, or
nil
if nothing matches -
Creates a new SKTypeface with a style that is the closest match to the specified font style.
Declaration
Swift
public func createTypeface(index: Int32) -> Typeface?
Return Value
the typeface if available, nil if the index is invalid
-
Returns the name of the font style.
Declaration
Swift
public func getStyleName(index: Int32) -> String