fn cast_size_to_hint(size: Size, scale_factor: f64) -> (i32, i32)
Use the above strategy to cast a size into a hinted size.