Crates.io | ilmenite |
lib.rs | ilmenite |
version | 0.14.0 |
source | src |
created_at | 2019-12-15 12:25:40.138503 |
updated_at | 2023-04-29 23:59:07.700284 |
description | A rust library for shaping, placing, and rasterizing text primarily for Basalt. |
homepage | |
repository | https://github.com/AustinJ235/ilmenite |
max_upload_size | |
id | 189541 |
size | 101,110 |
Many features are incomplete. This crate is a WIP!
A rust library for shaping, placing, and rasterizing text primarily for Basalt.
let ilmenite = Ilmenite::new();
ilmenite.add_font(ImtFont::from_file(
"MyFont",
ImtWeight::Normal,
ImtRasterOps::default(),
device,
queue,
"MyFont.ttf"
).unwrap());
let glyphs = ilmenite.glyphs_for_text(
"MyFont",
ImtWeight::Normal,
12.0,
None,
"Hello World!"
).unwrap();