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
path
The path of the font file.
-
Creates a font file instance representing the specified data.
Declaration
Swift
public init?(data: Data)
Parameters
data
The 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
stream
The input stream that contains the data of the font.
-
Named typefaces of this font file.
Declaration
Swift
public var typefaces: [Typeface] { get }