Function nannou::text::rt_positioned_glyphs [−][src]
pub fn rt_positioned_glyphs<'a, I>(
lines_with_rects: I,
font: &'a Font,
font_size: FontSize,
window_size: Vector2,
scale_factor: Scalar
) -> impl 'a + Iterator<Item = PositionedGlyph> where
I: IntoIterator<Item = (&'a str, Rect)>,
I::IntoIter: 'a,
Produce the position of each glyph ready for the rusttype glyph cache.
Window dimensions are expected in logical coordinates.