[−][src]Function nannou::text::line::rects
ⓘImportant traits for Rects<I>
pub fn rects<I>(
infos: I,
font_size: FontSize,
max_width: Scalar,
x_align: Justify,
line_spacing: Scalar
) -> Rects<I> where
I: Iterator<Item = Info>,
Produce an iterator yielding the bounding Rect
for each line in the text.
Yielded Rect
s will begin with the top-left of the first line at a [0.0, 0.0].
This function assumes that font_size
and max_width
are the same as those used to produce
the Info
s yielded by the infos
Iterator.