FontImporter
@objcMembers
@objc(PESDKFontImporter)
open class FontImporter : NSObject
Provides functions to import fonts added as resources. It also registers them, so that the application can load them like any other pre-installed font.
-
This array contains all available fonts.
Note
This is a wrapper forAssetCatalog.shared
.Declaration
Swift
public static var all: [Font] { get set }
-
Returns the first font with the given identifier, if available.
Note
This is a wrapper for
AssetCatalog.shared
.Declaration
Swift
public static func font(withIdentifier identifier: String) -> Font?
Parameters
identifier
The identifier of the font to look for.
Return Value
The font with the given identifier or
nil
. -
Creates the default fonts that are shipped with the SDK.
Declaration
Swift
public class var defaultItems: [Font] { get }