Struct swash::GlyphMetrics [−][src]
pub struct GlyphMetrics<'a> { /* fields omitted */ }
Expand description
Glyph advances, side bearings and vertical origins.
Implementations
Returns the number of font design units per em unit.
Returns the number of glyphs in the font.
Returns true if the font provides canonical vertical glyph metrics.
Returns true if variations are supported.
Creates a new set of metrics scaled for the specified pixels per em unit.
Creates a new set of metrics scaled by the specified factor.
Returns the horizontal advance for the specified glyph.
Returns the left side bearing for the specified glyph.
Returns the vertical advance for the specified glyph.
Returns the top side bearing for the specified glyph.
Returns the vertical origin for the specified glyph id.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for GlyphMetrics<'a>
impl<'a> Send for GlyphMetrics<'a>
impl<'a> Sync for GlyphMetrics<'a>
impl<'a> Unpin for GlyphMetrics<'a>
impl<'a> UnwindSafe for GlyphMetrics<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more