pub struct GlyphPosition {
pub font_family: String,
pub x: f32,
pub y: f32,
pub glyph_id: u32,
pub advance: f32,
}Expand description
A glyph position in the rendered output.
Fields§
§font_family: StringFont family this glyph belongs to.
x: f32X position in pixels.
y: f32Y position (baseline) in pixels.
glyph_id: u32Glyph ID in the font.
advance: f32Advance width.
Trait Implementations§
Source§impl Clone for GlyphPosition
impl Clone for GlyphPosition
Source§fn clone(&self) -> GlyphPosition
fn clone(&self) -> GlyphPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GlyphPosition
impl RefUnwindSafe for GlyphPosition
impl Send for GlyphPosition
impl Sync for GlyphPosition
impl Unpin for GlyphPosition
impl UnsafeUnpin for GlyphPosition
impl UnwindSafe for GlyphPosition
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