pub fn calculate_ideal_font_size(
    width: i32,
    text: &String,
    font: u32,
    min_point_size: Option<f64>,
    font_size: f64
) -> f64