Fast GPU cached text rendering using gfx-rs v0.17 & glyph-brush.
Makes use of three kinds of caching to optimise frame performance.
```rust use gfx_glyph::{Section, GlyphBrushBuilder};
let garamond: &[u8] = includebytes!("GaramondNo8-Reg.ttf"); let mut glyphbrush = GlyphBrushBuilder::usingfontbytes(garamond) .build(gfx_factory.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)?; ```
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.2 or later) only. Use glyph-brush directly if this is an issue.