Struct allsorts_no_std::bitmap::EmbeddedMetrics [−][src]
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
impl EmbeddedMetrics
[src]
pub fn hori(&self) -> Option<&BitmapMetrics>
[src]
Metrics for horizontal layout.
pub fn vert(&self) -> Option<&BitmapMetrics>
[src]
Metrics for vertical layout.
Trait Implementations
impl Debug for EmbeddedMetrics
[src]
impl TryFrom<(&'_ BitmapInfo, &'_ BigGlyphMetrics)> for EmbeddedMetrics
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(
(info, big_metrics): (&BitmapInfo, &BigGlyphMetrics)
) -> Result<Self, Self::Error>
[src]
(info, big_metrics): (&BitmapInfo, &BigGlyphMetrics)
) -> Result<Self, Self::Error>
impl TryFrom<(&'_ BitmapInfo, &'_ SmallGlyphMetrics)> for EmbeddedMetrics
[src]
type Error = ParseError
The type returned in the event of a conversion error.
fn try_from(
(info, small_metrics): (&BitmapInfo, &SmallGlyphMetrics)
) -> Result<Self, Self::Error>
[src]
(info, small_metrics): (&BitmapInfo, &SmallGlyphMetrics)
) -> Result<Self, Self::Error>
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,