gfx_glyph
Fast GPU cached text rendering using gfx-rs v0.18 & glyph-brush.
use ;
let dejavu = try_from_slice?;
let mut glyph_brush = using_font.build;
// set the text scale, font, color, position, etc
let section = default
.add_text;
glyph_brush.queue;
glyph_brush.queue;
glyph_brush.use_queue.draw?;
Examples
Have a look at
cargo run --example paragraph --release
cargo run --example performance --release
cargo run --example varied --release
cargo run --example depth --release
Limitations
The current implementation supports OpenGL (3.2 or later) only. Use glyph-brush directly if this is an issue.