LavaUI docs GitHub

struct FontRasterFlags

Swift

struct FontRasterFlags

Hinting selection plus flags, packed the way canvas::RasterFlags reads it. Bits outside the ones defined here are refused by the renderer rather than ignored, so this type is the only supported way to build the word.

Sources/LavaUI/Font.swift:70

Constructors

init(hinting: FontHinting = .normal, forceAutohint: Bool = false)

Creates flags from a hinting mode and whether to force the autohinter.

Sources/LavaUI/Font.swift:79

Properties

static let `default`: FontRasterFlags

The font's own hinting, no forced autohinter.

Sources/LavaUI/Font.swift:85

var forceAutohint: Bool

Force FreeType's autohinter over the font's own bytecode.

Sources/LavaUI/Font.swift:76

var hinting: FontHinting

How the face is fitted to the pixel grid.

Sources/LavaUI/Font.swift:74

var raw: UInt32 { get }

The packed canvas::RasterFlags word the renderer reads.

Sources/LavaUI/Font.swift:88