glow_glyph

Integration status crates.io Documentation License

A fast text renderer for glow, powered by glyph_brush

```rust use glow_glyph::{Section, GlyphBrushBuilder};

let font: &[u8] = includebytes!("SomeFont.ttf"); let mut glyphbrush = GlyphBrushBuilder::usingfontbytes(font) .expect("Load font") .build(&glow_context);

let section = Section { text: "Hello glow_glyph", ..Section::default() // color, position, etc };

glyphbrush.queue(section); glyphbrush.queue(someothersection);

glyphbrush.drawqueued( &glowcontext, windowwidth, window_height, ); ```

Examples

Have a look at * cargo run --example hello * cargo run --example clipping