pub struct Glyph {
pub font: usize,
pub id: u32,
pub advance: i32,
pub x: i32,
pub y: i32,
pub cluster: usize,
pub end: usize,
}Expand description
a shaped glyph for Canvas::glyphs: Document::shape gives them, a text layout that shaped its lines already builds its own
Fields§
§font: usizewhich of the fonts passed along (0: the first)
id: u32the glyph id in that font
advance: i32how far the pen moves after the glyph, in font units
x: i32the glyph’s offset from the pen in font units (y up)
y: i32§cluster: usizethe byte range of the text the glyph stands for (its cluster): cluster..end
end: usizeTrait Implementations§
impl Copy for Glyph
impl Eq for Glyph
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl Forget for Glyph
impl Freeze for Glyph
impl Move for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnsafeUnpin 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