[][src]Struct femtovg::FontMetrics

pub struct FontMetrics { /* fields omitted */ }

Information about a font.

Implementations

impl FontMetrics[src]

pub fn ascender(&self) -> f32[src]

The distance from the baseline to the top of the highest glyph

pub fn descender(&self) -> f32[src]

The distance from the baseline to the bottom of the lowest descenders on the glyphs

pub fn height(&self) -> f32[src]

pub fn regular(&self) -> bool[src]

pub fn italic(&self) -> bool[src]

pub fn bold(&self) -> bool[src]

pub fn oblique(&self) -> bool[src]

pub fn variable(&self) -> bool[src]

pub fn weight(&self) -> u16[src]

pub fn width(&self) -> u16[src]

Trait Implementations

impl Clone for FontMetrics[src]

impl Copy for FontMetrics[src]

impl Debug for FontMetrics[src]

impl Default for FontMetrics[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> 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, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.