Function nannou::text::height_by_lines
source · pub fn height_by_lines(
num_lines: usize,
font_size: FontSize,
line_spacing: Scalar
) -> Scalar
Expand description
Determine the total height of a block of text with the given number of lines, font size and
line_spacing
(the space that separates each line of text).
The height of all lines of text are assumed to match the font_size
. If looking for the exact
height, see the exact_height
function.