GlyphInfo
struct · ferroui-base · v0.5.0
struct GlyphInfo
Represents a single glyph.
Members
glyph_index
glyph_index: u16
The index of the glyph in the associated font.
glyph_cluster
glyph_cluster: i32
The index (UTF-16 code unit, relative to the shaped text) of the first character that was used to create this glyph.
glyph_advance
glyph_advance: f64
The glyph advance.
glyph_offset
glyph_offset: crate::Vector
The glyph offset.
new
const fn new(glyph_index: u16, glyph_cluster: i32, glyph_advance: f64) -> Self
with_offset
const fn with_offset(glyph_index: u16, glyph_cluster: i32, glyph_advance: f64, glyph_offset: Vector) -> Self
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.