lineHeight property
LineBox.lineHeight ON BLINK'S 1/64 GRID. Blink lays lines out in
LayoutUnits, and a line height that is a length -- 110% and 1.1em
compute to one (css-inline-3 4.1) -- goes onto that grid ROUNDED
(LayoutUnit::FromFloatRound): 110% of 32px is 35.2, and every line
of it 35.203125. A line height that is a number of pixels comes here
on the grid already; one that follows the window is worked out at
layout, and was used as the 35.2 it came to -- a bank's two-line
pricing heading, 110% of a fluid size, lost 0.00625px at every phone
width, which put the footnotes at 360, on y = n + 0.5 in Chrome, under
the half pixel, and Skia drew every line of them a whole pixel high
(fixtures/text-fluid-line-grid). A NUMBER is not a length: Blink
TRUNCATES a number's share onto the grid, and rounded here it could
stand a 64th over Blink's line (height).
Implementation
double? get lineHeight => _lineHeight;
Implementation
set lineHeight(double? v) {
final g = _onGrid(v);
if (g == _lineHeight) return;
_lineHeight = g;
markNeedsLayout();
}