line_height

Function line_height 

Source
pub fn line_height(
    child: impl IntoUiNode,
    height: impl IntoVar<LineHeight>,
) -> UiNode
Expand description

P Height of each text line.

The Default value is computed from the font metrics, ascent - descent + line_gap, this is usually similar to 1.2.em(). Relative values are computed from the default value, so 200.pct() is double the default line height.

The text is vertically centered inside the height.

Sets the LINE_HEIGHT_VAR.