Crate ilmenite

source ·
Expand description
let ilmenite = Ilmenite::new();

ilmenite.add_font(
    ImtFont::from_file(
        "MyFont",
        ImtWeight::Normal,
        ImtRasterOpts::default(),
        device,
        queue,
        "MyFont.ttf",
    )
    .unwrap(),
);

let glyphs = ilmenite
    .glyphs_for_text("MyFont", ImtWeight::Normal, 12.0, None, "Hello World!")
    .unwrap();

Re-exports

Modules

Structs

Functions