Struct allsorts::bitmap::EmbeddedMetrics
source · [−]Expand description
Metrics embedded alongside the bitmap.
One or both of the horizontal or vertical metrics with always be present.
Fields
ppem_x: u8
Horizontal pixels per em.
ppem_y: u8
Vertical pixels per em.
Implementations
sourceimpl EmbeddedMetrics
impl EmbeddedMetrics
sourcepub fn hori(&self) -> Option<&BitmapMetrics>
pub fn hori(&self) -> Option<&BitmapMetrics>
Metrics for horizontal layout.
sourcepub fn vert(&self) -> Option<&BitmapMetrics>
pub fn vert(&self) -> Option<&BitmapMetrics>
Metrics for vertical layout.
Trait Implementations
sourceimpl Debug for EmbeddedMetrics
impl Debug for EmbeddedMetrics
sourceimpl TryFrom<(&BitmapInfo, &BigGlyphMetrics)> for EmbeddedMetrics
impl TryFrom<(&BitmapInfo, &BigGlyphMetrics)> for EmbeddedMetrics
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourcefn try_from(
(info, big_metrics): (&BitmapInfo, &BigGlyphMetrics)
) -> Result<Self, Self::Error>
fn try_from(
(info, big_metrics): (&BitmapInfo, &BigGlyphMetrics)
) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<(&BitmapInfo, &SmallGlyphMetrics)> for EmbeddedMetrics
impl TryFrom<(&BitmapInfo, &SmallGlyphMetrics)> for EmbeddedMetrics
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourcefn try_from(
(info, small_metrics): (&BitmapInfo, &SmallGlyphMetrics)
) -> Result<Self, Self::Error>
fn try_from(
(info, small_metrics): (&BitmapInfo, &SmallGlyphMetrics)
) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for EmbeddedMetrics
impl Send for EmbeddedMetrics
impl Sync for EmbeddedMetrics
impl Unpin for EmbeddedMetrics
impl UnwindSafe for EmbeddedMetrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more