Function nannou::text::exact_height[][src]

pub fn exact_height(
    first_line_height: Scalar,
    num_lines: usize,
    font_size: FontSize,
    line_spacing: Scalar
) -> Scalar
Expand description

Determine the exact height of a block of text.

The first_line_height can be retrieved via its line::Info which can be retrieved via the first element of a line_infos iterator.