zng_wgt_text

Function line_spacing

source
pub fn line_spacing(
    child: impl UiNode,
    extra: impl IntoVar<LineSpacing>,
) -> impl UiNode
Expand description

P Extra spacing in-between text lines. If not set inherits the line_spacing from the parent widget.

The Default value is zero. Relative values are calculated from the LineHeight, so 50.pct() is half the computed line height. If the text only has one line this property is not used.

Sets the LINE_SPACING_VAR.