ttf-parser plus support for owned data.
Provides OwnedFace, AsFaceRef and re-exports ttf_parser::*.
use owned_ttf_parser::{AsFaceRef, OwnedFace, Face};
let owned_face = OwnedFace::from_vec(owned_face_data, 0).unwrap();
let face_ref: &Face<'_> = owned_face.as_face_ref();
assert_eq!(face_ref.ascender(), 2254);no_std environments are supported using alloc.
owned_ttf_parser = { default-features = false }All crates maintained with latest stable rust.