pub fn measure_text_width(
    font: Vec<u8>,
    font_size: u32,
    text: &str
) -> Result<f64, Error>