| Crates.io | embedded-ttf |
| lib.rs | embedded-ttf |
| version | 0.2.2 |
| created_at | 2025-08-24 12:47:31.001254+00 |
| updated_at | 2025-08-26 14:50:05.47989+00 |
| description | Font rendering (ttf and otf) with embedded-graphics |
| homepage | |
| repository | https://github.com/peckpeck/embedded-ttf |
| max_upload_size | |
| id | 1808300 |
| size | 189,622 |
Font rendering (ttf and otf) for embedded-graphics (no_std).
let mut display: SimulatorDisplay<Rgb565> = SimulatorDisplay::new(Size::new(350, 200));
let style = FontTextStyleBuilder::new(
Font::try_from_bytes(include_bytes!("../assets/Roboto-Regular.ttf")).unwrap())
.font_size(16)
.text_color(Rgb565::WHITE)
.build();
Text::new("Hello World!", Point::new(15, 30), style).draw(&mut display)?;