[−][src]Struct fontdue::Metrics
Encapsulates all layout information associated with a glyph for a fixed scale.
Fields
width: usize
The width of the associated glyph.
height: usize
The height of the associated glyph.
bearing_x: f32
The left side bearing. Used in horizontal fonts.
bearing_y: f32
The top side bearing. Used in vertical fonts.
advance_x: f32
The advance width. Used in horizontal fonts.
advance_y: f32
The advance height. Used in vertical fonts.
Trait Implementations
Auto Trait Implementations
impl Unpin for Metrics
impl Send for Metrics
impl Sync for Metrics
impl RefUnwindSafe for Metrics
impl UnwindSafe for Metrics
Blanket Implementations
impl<T> From<T> for T
[src]
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,