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
FontSettingwith 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
levelThe HTML heading level that any content with the matching font is converted to.
minSizeThe minimum size of the font to match.
maxSizeThe maximum size of the font to match.
boldWhen
true, the font is matched if it is bold.italicWhen
true, the font is matched if it is italic.nameThe name of the font.
Return Value
An initialized
FontSetting.
View on GitHub
FontSetting Structure Reference