ownedttfparser crates.io

Documentation

ttf-parser plus support for owned data.

Provides OwnedFont, AsFontRef and re-exports ttf_parser::*.

Example

```rust use ownedttfparser::{AsFontRef, OwnedFont, Font};

let ownedfont = OwnedFont::fromvec(ownedfontdata, 0).unwrap(); let fontref: &Font<'> = ownedfont.asfont();

asserteq!(fontref.ascender(), 2254); ```

no_std

no_std environments are supported using alloc. toml owned_ttf_parser = { default-features = false }

Minimum supported rust compiler

All crates maintained with latest stable rust.