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: GlyphIdGlyph identifier.
info: GlyphInfoGlyph flags.
x: f32Horizontal offset.
y: f32Vertical offset.
advance: f32Advance width or height.
data: UserDataArbitrary 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