Struct Shaped Glyph
pub struct ShapedGlyph {
pub id: u32,
pub cluster: u32,
pub x: f64,
pub y: f64,
pub x_advance: f64,
pub y_advance: f64,
}Expand description
Positioned glyph in visual order, with UTF8 byte cluster and scaled font-unit advances/offsets. Y points up; renderer owns any baseline/coordinate transform. Glyph zero is the missing-glyph result; no fallback face is selected.
Fields§
§id: u32§cluster: u32§x: f64§y: f64§x_advance: f64§y_advance: f64Trait Implementations§
§impl Clone for ShapedGlyph
impl Clone for ShapedGlyph
§fn clone(&self) -> ShapedGlyph
fn clone(&self) -> ShapedGlyph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShapedGlyph
§impl Debug for ShapedGlyph
impl Debug for ShapedGlyph
§impl PartialEq for ShapedGlyph
impl PartialEq for ShapedGlyph
impl StructuralPartialEq for ShapedGlyph
Auto Trait Implementations§
impl Freeze for ShapedGlyph
impl RefUnwindSafe for ShapedGlyph
impl Send for ShapedGlyph
impl Sync for ShapedGlyph
impl Unpin for ShapedGlyph
impl UnsafeUnpin for ShapedGlyph
impl UnwindSafe for ShapedGlyph
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more