[]Struct glyph_brush::rusttype::VMetrics

pub struct VMetrics {
    pub ascent: f32,
    pub descent: f32,
    pub line_gap: f32,
}

The "vertical metrics" of a font at a particular scale. This is useful for calculating the amount of vertical space to give a line of text, and for computing the vertical offset between successive lines.

Fields

ascent: f32

The highest point that any glyph in the font extends to above the baseline. Typically positive.

descent: f32

The lowest point that any glyph in the font extends to below the baseline. Typically negative.

line_gap: f32

The gap to leave between the descent of one line and the ascent of the next. This is of course only a guideline given by the font's designers.

Trait Implementations

impl Copy for VMetrics

impl Clone for VMetrics

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<VMetrics> for VMetrics

impl PartialOrd<VMetrics> for VMetrics

impl Mul<f32> for VMetrics

type Output = VMetrics

The resulting type after applying the * operator.

impl PartialEq<VMetrics> for VMetrics

impl Debug for VMetrics

Auto Trait Implementations

impl Send for VMetrics

impl Sync for VMetrics

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.