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