pub struct MathGlyph {
pub glyph_code: u32,
pub cluster: u32,
pub offset: Vector<i32>,
pub advance_width: i32,
pub extents: Extents<i32>,
pub italic_correction: i32,
pub top_accent_attachment: i32,
}Expand description
A structure that describes an individual glyph in a font.
Fields§
§glyph_code: u32The font-specific glyph code
cluster: u32the utf-8 offset into the field that generated this glyph
offset: Vector<i32>The Offset at which the glyph should be rendered.
advance_width: i32The glyph’s advance width.
extents: Extents<i32>The exact dimensions of the glyph’s outline.
italic_correction: i32The italic correction to apply after this glyph.
top_accent_attachment: i32The x-coordinate where a top accent should be attached.
Trait Implementations§
impl Copy for MathGlyph
impl Eq for MathGlyph
impl StructuralPartialEq for MathGlyph
Auto Trait Implementations§
impl Forget for MathGlyph
impl Freeze for MathGlyph
impl Move for MathGlyph
impl RefUnwindSafe for MathGlyph
impl Send for MathGlyph
impl Sync for MathGlyph
impl Unpin for MathGlyph
impl UnsafeUnpin for MathGlyph
impl UnwindSafe for MathGlyph
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