fonts/line_height library

Constants

kLineHeightClearance → const double
Clearance between adjacent lines, as a fraction of the requested size.
kLineHeightFloor → const double
Minimum baseline distance, as a fraction of the requested size.

Functions

latinInkForFontFamily(String? fontFamily) → (double, double)?
How far the Latin letter ink of fontFamily reaches (above, below) the baseline in em, over every weight and style. Null if it is unknown.
lineHeightForFontFamily(String? fontFamily, {double clearance = kLineHeightClearance}) → double?
TextStyle.height for fontFamily, or null if the font has no data.
naturalLineHeightForFontFamily(String? fontFamily) → double?
The font's own line box (hhea ascent + descent) in em, or null if the font has no Latin ink data.