pub struct GlyphMetrics {
pub advance: f64,
pub height: f64,
pub depth: f64,
pub italic: f64,
}Expand description
Per-glyph metrics in ems of the face’s design size.
Fields§
§advance: f64Advance width.
height: f64Ink extent above the baseline (0 for empty glyphs).
depth: f64Ink extent below the baseline, positive (0 for empty glyphs).
italic: f64Synthesized italic correction: right ink overhang past the advance.
Trait Implementations§
Source§impl Clone for GlyphMetrics
impl Clone for GlyphMetrics
impl Copy for GlyphMetrics
Source§impl Debug for GlyphMetrics
impl Debug for GlyphMetrics
Source§impl Default for GlyphMetrics
impl Default for GlyphMetrics
Source§impl PartialEq for GlyphMetrics
impl PartialEq for GlyphMetrics
impl StructuralPartialEq for GlyphMetrics
Auto Trait Implementations§
impl Freeze for GlyphMetrics
impl RefUnwindSafe for GlyphMetrics
impl Send for GlyphMetrics
impl Sync for GlyphMetrics
impl Unpin for GlyphMetrics
impl UnsafeUnpin for GlyphMetrics
impl UnwindSafe for GlyphMetrics
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