FontFile
public class FontFile
A FontFile object represents the file of a specific font format.
-
Creates a font file instance representing the specified file path. The data of the font is directly read from the file when needed.
Declaration
Swift
public init?(path: String)Parameters
pathThe path of the font file.
-
Creates a font file instance representing the specified data.
Declaration
Swift
public init?(data: Data)Parameters
dataThe data of the font file.
-
Creates a font file instance from the specified input stream by copying its data into a memory buffer. It may take some time to create the instance if the stream holds larger data.
Declaration
Swift
public init?(stream: InputStream)Parameters
streamThe input stream that contains the data of the font.
-
Named typefaces of this font file.
Declaration
Swift
public var typefaces: [Typeface] { get }
View on GitHub
Install in Dash
FontFile Class Reference