Crate owned_ttf_parser[−][src]
Expand description
Extends ttf_parser with owned version of
Face
: OwnedFace
.
Re-exports ttf_parser::*
.
Example
use owned_ttf_parser::{AsFaceRef, OwnedFace, Face}; 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
A character to glyph index mapping table implementation.
A kerning table implementation.
A list of name ID’s.
Binary parsing utils.
Structs
A value of Class Definition Table.
A font face handle.
Parsed face tables.
A type-safe wrapper for glyph ID.
A line metrics.
A Name Record.
An iterator over font’s names.
A variation coordinate in a normalized coordinate system.
An owned version of font Face
.
A glyph’s raster image.
A rectangle.
A script metrics used by subscript and superscript.
A 4-byte tag.
A font variation value.
An iterator over variation axes.
Enums
A list of font face parsing errors.
A glyph class.
A platform ID.
A glyph raster image format.
A table name.
A font weight.
A font width.
Traits
Used to perform a cheap conversion to a Face
reference.
A trait for glyph outline construction.
Functions
Returns the number of fonts stored in a TrueType font collection.