CompositeGlyph
struct · ferroui-base · v0.5.0
struct CompositeGlyph<'a>
A decoded composite glyph: a list of component glyph references.
Members
components
fn components(self: &Self) -> &[GlyphComponent]
instructions
fn instructions(self: &Self) -> &'a [u8]
The glyph instructions (currently never read, always empty).
uses_point_matching
fn uses_point_matching(self: &Self) -> bool
Whether at least one component is placed by point matching
(ARGS_ARE_XY_VALUES clear).
create
fn create(data: &'a [u8]) -> Result<CompositeGlyph<'a>, FontTableError>
Decodes the glyph body that follows the 10 byte glyph header.
Err when the component records run past the end of the data.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebugDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.