ilmenite

Crates.ioilmenite
lib.rsilmenite
version0.14.0
sourcesrc
created_at2019-12-15 12:25:40.138503
updated_at2023-04-29 23:59:07.700284
descriptionA rust library for shaping, placing, and rasterizing text primarily for Basalt.
homepage
repositoryhttps://github.com/AustinJ235/ilmenite
max_upload_size
id189541
size101,110
Austin Johnson (AustinJ235)

documentation

https://docs.rs/ilmenite

README

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();
Commit count: 85

cargo fmt