ownedttfparser crates.io

Documentation

ttf-parser plus support for owned data.

Provides OwnedFace, AsFaceRef and re-exports ttf_parser::*.

Example

```rust use ownedttfparser::{AsFaceRef, OwnedFace, Face};

let ownedface = OwnedFace::fromvec(ownedfacedata, 0).unwrap(); let faceref: &Face<'> = ownedface.asface_ref();

asserteq!(faceref.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.