azul_text_layout::text_layout

Function get_line_y_position

Source
pub fn get_line_y_position(
    line_number: usize,
    font_size_px: f32,
    line_height_px: f32,
) -> f32
Expand description

For a given line number (NOTE: 0-indexed!), calculates the Y position of the bottom left corner