Skip to main content

stroke_pixels

Function stroke_pixels 

Source
pub fn stroke_pixels(strokes: &[TextStroke], font_size: f32) -> Vec<TextStroke>
Expand description

strokes in pixels of a font_size-pixel font (widths are fractions of the font size). Each is at least the smallest positive width, and the last is shortened so together they reach at most MAX_STROKE_PIXELS.