Skip to main content

quantize_x

Function quantize_x 

Source
pub fn quantize_x(x: f32) -> (i32, u8)
Expand description

Splits a horizontal position into a whole pixel and a subpixel bin (0..SUBPIXEL_STEPS), rounding to the nearest bin. Draw the glyph cached for bin at the returned pixel.