ttf-parser plus support for owned data.
Provides OwnedFont
, AsFontRef
and re-exports ttf_parser::*
.
```rust use ownedttfparser::{AsFontRef, OwnedFont, Font};
let ownedfont = OwnedFont::fromvec(ownedfontdata, 0).unwrap(); let fontref: &Font<'> = ownedfont.asfont();
asserteq!(fontref.ascender(), 2254); ```
no_std environments are supported using alloc
.
toml
owned_ttf_parser = { default-features = false }
All crates maintained with latest stable rust.