[−][src]Struct femtovg::FontMetrics
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]
pub fn clone(&self) -> FontMetrics
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FontMetrics
[src]
impl Debug for FontMetrics
[src]
impl Default for FontMetrics
[src]
pub fn default() -> FontMetrics
[src]
Auto Trait Implementations
impl RefUnwindSafe for FontMetrics
[src]
impl Send for FontMetrics
[src]
impl Sync for FontMetrics
[src]
impl Unpin for FontMetrics
[src]
impl UnwindSafe for FontMetrics
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
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>,