Skip to main content

closer_to

Function closer_to 

Source
fn closer_to(ppem: Option<f32>, candidate: u16, best: u16) -> bool
Expand description

Returns true if a strike of candidate pixels per em is a better match for ppem than a strike of best.

The smallest strike that is at least ppem is preferred, or the largest strike if none is that large. None or a size that is not positive selects the largest strike.