FontSetting

public struct FontSetting : Codable, Equatable

Font matching configuration.

  • The HTML heading level that any content with the matching font is converted to.

    Declaration

    Swift

    public var level: Int?
  • The minimum size of the font to match.

    Declaration

    Swift

    public var minSize: Int?
  • The maximum size of the font to match.

    Declaration

    Swift

    public var maxSize: Int?
  • When true, the font is matched if it is bold.

    Declaration

    Swift

    public var bold: Bool?
  • When true, the font is matched if it is italic.

    Declaration

    Swift

    public var italic: Bool?
  • The name of the font.

    Declaration

    Swift

    public var name: String?
  • Initialize a FontSetting with member variables.

    Declaration

    Swift

    public init(
        level: Int? = nil,
        minSize: Int? = nil,
        maxSize: Int? = nil,
        bold: Bool? = nil,
        italic: Bool? = nil,
        name: String? = nil
    )

    Parameters

    level

    The HTML heading level that any content with the matching font is converted to.

    minSize

    The minimum size of the font to match.

    maxSize

    The maximum size of the font to match.

    bold

    When true, the font is matched if it is bold.

    italic

    When true, the font is matched if it is italic.

    name

    The name of the font.

    Return Value

    An initialized FontSetting.