Crates.io | owned_ttf_parser |
lib.rs | owned_ttf_parser |
version | 0.25.0 |
source | src |
created_at | 2020-04-21 19:18:43.60593 |
updated_at | 2024-10-04 07:45:41.14739 |
description | ttf-parser plus support for owned data |
homepage | |
repository | https://github.com/alexheretic/owned-ttf-parser |
max_upload_size | |
id | 232681 |
size | 238,539 |
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.