owned_ttf_parser

Crates.ioowned_ttf_parser
lib.rsowned_ttf_parser
version0.25.0
sourcesrc
created_at2020-04-21 19:18:43.60593
updated_at2024-10-04 07:45:41.14739
descriptionttf-parser plus support for owned data
homepage
repositoryhttps://github.com/alexheretic/owned-ttf-parser
max_upload_size
id232681
size238,539
Alex Butler (alexheretic)

documentation

README

owned_ttf_parser crates.io Documentation

ttf-parser plus support for owned data.

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

Example

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

no_std environments are supported using alloc.

owned_ttf_parser = { default-features = false }

Minimum supported rust compiler

All crates maintained with latest stable rust.

Commit count: 37

cargo fmt