Glyphr
This library focus is not to be the fastest, but one of the most beautiful in the embedded world.
Features
- Completely intuitive
- You decide how pixel are written on the screen
- No heap allocation
- Compile time font bitmaps generation
- Full Unicode support
How To Build
To get started visit glyphr-macros for detailed instructions on how to generate fonts, then proceed in this page.
How To Use
The renderer is callback-first. You provide dimensions and closures; glyphr does not store your
framebuffer.
Create Glyphr with a builder-style config:
use ;
let conf = default
.with_color
.with_sdf;
let renderer = with_config;
let mut target = new;
Render text with draw_text:
use ;
renderer
.draw_text
.unwrap;
For DMA-style pipelines, use draw_text_bulk to get one ARGB tile per glyph:
use ;
let mut scratch = ;
let mut bulk = new;
renderer
.draw_text_bulk
.unwrap;
[!TIP] If you want to run an example on your machine you can just do:
cargo run --example glyphr_test --features "toml window"Bulk callback example:
cargo run --example glyphr_bulk --features "window"