SimpleGlyph
struct · ferroui-base · v0.5.0
struct SimpleGlyph<'a>
A decoded simple (non-composite) glyph outline.
The default value is the empty outline, which is also what malformed or truncated glyph data decodes to.
Members
end_pts_of_contours
fn end_pts_of_contours(self: &Self) -> &[u16]
instructions
fn instructions(self: &Self) -> &'a [u8]
flags
fn flags(self: &Self) -> &[GlyphFlag]
x_coordinates
fn x_coordinates(self: &Self) -> &[i16]
y_coordinates
fn y_coordinates(self: &Self) -> &[i16]
create
fn create(data: &'a [u8], number_of_contours: i32) -> SimpleGlyph<'a>
Decodes the glyph body that follows the 10 byte glyph header.
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.