Crate owned_ttf_parser

source ·
Expand description

Extends ttf_parser with owned version of Face: OwnedFace.

Re-exports ttf_parser::*.

§Example

use owned_ttf_parser::{AsFaceRef, Face, OwnedFace};

let owned_face = OwnedFace::from_vec(owned_font_data, 0).unwrap();
let face_ref: &Face<'_> = owned_face.as_face_ref();

assert_eq!(face_ref.ascender(), 2254);

Modules§

Structs§

Enums§

Traits§

Functions§