/// Draws linear-filtered text.
///
/// ## About the matrix
///
/// The matrix must be column-major post-muliplying (which is the usual way to do in OpenGL).
///
/// One unit in height corresponds to a line of text, but the text can go above or under.
/// The bottom of the line is at `0.0`, the top is at `1.0`.
/// You need to adapt your matrix by taking these into consideration.
Draws linear-filtered text.
Draws linear - filtered text .
pub fn draw<F, S: ?Sized, M>(text: &TextDisplay<F>, system: &TextSystem, target: &mut S, matrix: M, color: (f32, f32, f32, f32)) -> Result<(), glium::DrawError>
where
    S: glium::Surface,
    M: Into<[[f32; 4]; 4]>,
    F: Deref<Target = FontTexture>,
{
    let behavior = glium::uniforms::SamplerBehavior {
        magnify_filter: glium::uniforms::MagnifySamplerFilter::Linear,
        minify_filter: glium::uniforms::MinifySamplerFilter::Linear,
        ..Default::default()
    };
    let params = {
        use glium::{BlendingFunction::Addition, LinearBlendingFactor::*};
        let blending_function = Addition {
            source: SourceAlpha,
            destination: OneMinusSourceAlpha,
        };
        let blend = glium::Blend {
            color: blending_function,
            alpha: blending_function,
            constant_value: (1.0, 1.0, 1.0, 1.0),
        };
        DrawParameters { blend, ..Default::default() }
    };
    draw_with_params(text, system, target, matrix, color, behavior, &params)
}
pub fn draw < F , S : ? Sized , M > ( text : & TextDisplay < F > , system : & TextSystem , target : & mut S , matrix : M , color : ( f32 , f32 , f32 , f32 ) ) -> Result < ( ) , glium :: DrawError > where S : glium :: Surface , M : Into < [ [ f32 ; 4 ] ; 4 ] > , F : Deref < Target = FontTexture > , { let behavior = glium :: uniforms :: SamplerBehavior { magnify_filter : glium :: uniforms :: MagnifySamplerFilter :: Linear , minify_filter : glium :: uniforms :: MinifySamplerFilter :: Linear , .. Default :: default ( ) } ; let params = { use glium :: { BlendingFunction :: Addition , LinearBlendingFactor :: * } ; let blending_function = Addition { source : SourceAlpha , destination : OneMinusSourceAlpha , } ; let blend = glium :: Blend { color : blending_function , alpha : blending_function , constant_value : ( 1.0 , 1.0 , 1.0 , 1.0 ) , } ; DrawParameters { blend , .. Default :: default ( ) } } ; draw_with_params ( text , system , target , matrix , color , behavior , & params ) }
Draws linear-filtered text.
Draws linear - filtered text .
text
&TextDisplay<F>
system
&TextSystem
target
&mut S
matrix
M
color
(f32, f32, f32, f32)
about the matrix
The matrix must be column-major post-muliplying (which is the usual way to do in OpenGL).

One unit in height corresponds to a line of text, but the text can go above or under.
The bottom of the line is at `0.0`, the top is at `1.0`.
You need to adapt your matrix by taking these into consideration.
The matrix must be column - major post - muliplying ( which is the usual way to do in OpenGL ) . One unit in height corresponds to a line of text but the text can go above or under . The bottom of the line is at ` 0 . 0 ` the top is at ` 1 . 0 ` . You need to adapt your matrix by taking these into consideration .