pub fn get_scale_factor(dpi: &BTreeSet<u32>, actual_dpi: f32) -> f32
Returns a scale factor given a set of DPI buckets and an actual DPI value.