GlyphDescriptor
struct · ferroui-base · v0.5.0
struct GlyphDescriptor
The header of a glyph in the glyf table plus access to its outline.
Members
new
fn new(data: ReadOnlyMemory<u8>) -> Result<Self, FontTableError>
Reads the 10 byte glyph header; Err when the data is shorter.
number_of_contours
fn number_of_contours(self: &Self) -> i16
conservative_bounds
fn conservative_bounds(self: &Self) -> Rect
is_simple_glyph
fn is_simple_glyph(self: &Self) -> bool
simple_glyph
fn simple_glyph(self: &Self) -> SimpleGlyph<'_>
composite_glyph
fn composite_glyph(self: &Self) -> Result<CompositeGlyph<'_>, FontTableError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.