Docsv2.12.12
Back to API Reference
Enum

LineHeightMode

How a line's height is determined relative to the fonts it contains.

public static readonly LineHeightMode Content = 0

Line grows to fit the tallest font on it, including fallback fonts (CSS line-height: normal).

public static readonly LineHeightMode Primary = 1

Height comes from the primary font only; fallback glyphs never enlarge the line (Android fallbackLineSpacing=false).

public static readonly LineHeightMode Scaled = 2

Every line is exactly scale × fontSize regardless of content; tall glyphs may overlap (CSS fixed line-height, Flutter forceStrutHeight).