FontImporter

@available(iOS 9.0, *)
@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.

  • all

    This array contains all available fonts.

    Declaration

    Swift

    public static var all: [Font] = {
     defaultFonts
    }()
  • Returns the first font with the given identifier, if available.

    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.