pub struct Glyph {
pub id: u32,
pub x: f32,
pub y: f32,
}
Expand description
Positioned glyph.
Fields§
§id: u32
The font-specific identifier for this glyph.
This ID is specific to the font being used and corresponds to the glyph index within that font. It is not a Unicode code point.
x: f32
X-offset in run, relative to transform.
y: f32
Y-offset in run, relative to transform.
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