carnelian::drawing

Function measure_text_size

Source
pub fn measure_text_size(
    face: &FontFace,
    size: f32,
    text: &str,
    visual: bool,
) -> Size
Expand description

Return the size in pixels for the specified text, face and size.