Function nannou::text::glyph::rects_per_line
source · pub fn rects_per_line<'a, I>(
lines_with_rects: I,
font: &'a Font,
font_size: FontSize
) -> RectsPerLine<'a, I> ⓘ
Expand description
Produce an iterator that, for every (line, line_rect)
pair yielded by the given iterator,
produces an iterator that yields a Rect
for every character in that line.
This is useful when information about character positioning is needed when reasoning about text layout.