pub struct Glyph {
pub id: GlyphId,
pub info: GlyphInfo,
pub x: f32,
pub y: f32,
pub advance: f32,
pub data: UserData,
}
Expand description
Glyph identifier and positioning information as a result of shaping.
Fields§
§id: GlyphId
Glyph identifier.
info: GlyphInfo
Glyph flags.
x: f32
Horizontal offset.
y: f32
Vertical offset.
advance: f32
Advance width or height.
data: UserData
Arbitrary user data.
Trait Implementations§
impl Copy for Glyph
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnwindSafe for Glyph
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)