Skip to main content

at_least_whole

Function at_least_whole 

pub fn at_least_whole(minimum: f64, measured: f64) -> f64
Expand description

The authored (or token) 1× minimum, or the measured line plus its pad rounded up to a whole pixel once scaled type needs more — never a fraction short of what the painter lays down, and a whole pixel at every scale.