Struct femtovg::FontMetrics
source · pub struct FontMetrics { /* private fields */ }
Expand description
Information about a font.
Implementations§
source§impl FontMetrics
impl FontMetrics
sourcepub fn descender(&self) -> f32
pub fn descender(&self) -> f32
The distance from the baseline to the bottom of the lowest descenders on the glyphs
pub fn height(&self) -> f32
pub fn regular(&self) -> bool
pub fn italic(&self) -> bool
pub fn bold(&self) -> bool
pub fn oblique(&self) -> bool
pub fn variable(&self) -> bool
pub fn weight(&self) -> u16
pub fn width(&self) -> u16
Trait Implementations§
source§impl Clone for FontMetrics
impl Clone for FontMetrics
source§fn clone(&self) -> FontMetrics
fn clone(&self) -> FontMetrics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FontMetrics
impl Debug for FontMetrics
source§impl Default for FontMetrics
impl Default for FontMetrics
source§fn default() -> FontMetrics
fn default() -> FontMetrics
Returns the “default value” for a type. Read more
impl Copy for FontMetrics
Auto Trait Implementations§
impl Freeze for FontMetrics
impl RefUnwindSafe for FontMetrics
impl Send for FontMetrics
impl Sync for FontMetrics
impl Unpin for FontMetrics
impl UnwindSafe for FontMetrics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more