Struct swash::proxy::MetricsProxy [−][src]
pub struct MetricsProxy { /* fields omitted */ }
Proxy for rematerializing metrics.
Implementations
impl MetricsProxy
[src]
impl MetricsProxy
[src]pub fn from_font(font: &FontRef<'_>) -> Self
[src]
Creates a metrics proxy for the specified font.
pub fn materialize_metrics(
&self,
font: &FontRef<'_>,
coords: &[NormalizedCoord]
) -> Metrics
[src]
&self,
font: &FontRef<'_>,
coords: &[NormalizedCoord]
) -> Metrics
Materializes font metrics for the specified font and normalized variation coordinates. This proxy must have been created from the same font.
pub fn materialize_glyph_metrics<'a>(
&self,
font: &FontRef<'a>,
coords: &'a [NormalizedCoord]
) -> GlyphMetrics<'a>
[src]
&self,
font: &FontRef<'a>,
coords: &'a [NormalizedCoord]
) -> GlyphMetrics<'a>
Materializes glyph metrics for the specified font and normalized variation coordinates. This proxy must have been created from the same font.
pub fn units_per_em(&self) -> u16
[src]
Returns the number of font design units per em unit.
pub fn glyph_count(&self) -> u16
[src]
Returns the number of glyphs in the font.
Trait Implementations
impl Clone for MetricsProxy
[src]
impl Clone for MetricsProxy
[src]fn clone(&self) -> MetricsProxy
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MetricsProxy
[src]
impl Copy for MetricsProxy
[src]impl Default for MetricsProxy
[src]
impl Default for MetricsProxy
[src]fn default() -> MetricsProxy
[src]
Auto Trait Implementations
impl RefUnwindSafe for MetricsProxy
impl RefUnwindSafe for MetricsProxy
impl Send for MetricsProxy
impl Send for MetricsProxy
impl Sync for MetricsProxy
impl Sync for MetricsProxy
impl Unpin for MetricsProxy
impl Unpin for MetricsProxy
impl UnwindSafe for MetricsProxy
impl UnwindSafe for MetricsProxy