[][src]Function cat_engine::text::text_size

pub fn text_size(text: &str, font_size: f32, font: &Font<'_>) -> [f32; 2]

Расчитывает и возвращает ширину и высоту текста. Calculates and returns the width and the height of the text.

[width, height]