pub struct PlacedGlyph {
pub id: u32,
pub x: f32,
pub y: f32,
pub cluster: usize,
pub advance: f32,
}Expand description
PlacedGlyph describes one shaped glyph positioned within a paragraph.
Fields§
§id: u32id is the font-specific glyph identifier.
x: f32x is the paragraph-local horizontal origin in logical pixels.
y: f32y is the paragraph-local baseline origin in logical pixels.
cluster: usizecluster is the UTF-8 byte offset of the glyph’s text cluster.
advance: f32advance is the signed cursor movement, including justification.
Trait Implementations§
Source§impl Clone for PlacedGlyph
impl Clone for PlacedGlyph
Source§fn clone(&self) -> PlacedGlyph
fn clone(&self) -> PlacedGlyph
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 moreimpl Copy for PlacedGlyph
Auto Trait Implementations§
impl Freeze for PlacedGlyph
impl RefUnwindSafe for PlacedGlyph
impl Send for PlacedGlyph
impl Sync for PlacedGlyph
impl Unpin for PlacedGlyph
impl UnsafeUnpin for PlacedGlyph
impl UnwindSafe for PlacedGlyph
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