terminal::renderer

Function get_scale_factor

Source
pub fn get_scale_factor(dpi: &BTreeSet<u32>, actual_dpi: f32) -> f32
Expand description

Returns a scale factor given a set of DPI buckets and an actual DPI value.