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