Fast GPU cached text rendering using gfx-rs & rusttype.
Makes use of three kinds of caching to optimise frame performance.
```rust extern crate gfxglyph; use gfxglyph::{Section, GlyphBrushBuilder};
let arial: &[u8] = includebytes!("GaramondNo8-Reg.ttf"); let mut glyphbrush = GlyphBrushBuilder::usingfont(arial) .build(gfxfactory.clone());
let section = Section { text: "Hello gfx_glyph", ..Section::default() // color, position, etc };
glyphbrush.queue(section); glyphbrush.queue(someothersection);
glyphbrush.drawqueued(&mut gfxencoder, &gfxcolor, &gfx_depth).unwrap(); ```
Have a look at
* cargo run --example paragraph --release
* cargo run --example performance --release
* cargo run --example varied --release
* cargo run --example depth --release
The current implementation supports OpenGL (3.0 or later). However, other rendering languages (that are supported by gfx) should be easy enough to add. Send in your PRs!