[][src]Function fit_text::fitted_colored_text

pub fn fitted_colored_text<I, S, R, F, C, G>(
    fragments: I,
    rect: R,
    format: F,
    glyphs: &mut C,
    transform: Matrix2d,
    graphics: &mut G
) -> Result<(), C::Error> where
    I: IntoIterator<Item = (S, Color)>,
    S: AsRef<str>,
    R: Rectangle<Scalar = f64>,
    F: Into<TextFormat>,
    C: CharacterCache,
    C::Texture: ImageSize,
    G: Graphics<Texture = C::Texture>, 

Draw justified, colored text fragments to something using the piston2d-graphics crate

Text will be drawn in the given rectangle and use the given format