LavaUI docs

enum FontHinting

Swift

enum FontHinting

How a face is fitted to the pixel grid on its way to the atlas.

Mirrors canvas::FontHinting. Part of a face's identity, not a rendering hint applied afterwards: the same file at the same size hinted two ways is two sets of glyph bitmaps, and sharing one atlas entry between them would hand out whichever was rasterized first.

Sources/LavaUI/Font.swift:64

Cases

case normal

The font's own bytecode, where it has any. The renderer's default.

Sources/LavaUI/Font.swift:66

case none

Unhinted — faithful outlines, softer stems.

Sources/LavaUI/Font.swift:68

case light

Vertical fitting only. The usual Linux desktop preference.

Sources/LavaUI/Font.swift:70

case mono

Monochrome-style grid fitting, still rendered to grayscale coverage.

Sources/LavaUI/Font.swift:72