[−][src]Function fit_text::fitted_text
pub fn fitted_text<S, R, F, C, G>(
text: S,
rect: R,
format: F,
glyphs: &mut C,
transform: Matrix2d,
graphics: &mut G
) -> Result<(), C::Error> where
S: AsRef<str>,
R: Rectangle<Scalar = f64>,
F: Into<TextFormat>,
C: CharacterCache,
C::Texture: ImageSize,
G: Graphics<Texture = C::Texture>,
Draw justified text to something using the piston2d-graphics
crate
Text will be drawn in the given rectangle and use the given format