Struct printpdf::font::FontMetrics
source · [−]Expand description
The unscaled base metrics for a font provided by a FontData
implementation.
Fields
ascent: i16
The ascent of the font.
descent: i16
The descent of the font.
units_per_em: u16
The units per em square for this font.
Trait Implementations
sourceimpl Clone for FontMetrics
impl Clone for FontMetrics
sourcefn clone(&self) -> FontMetrics
fn clone(&self) -> FontMetrics
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FontMetrics
impl Debug for FontMetrics
sourceimpl Default for FontMetrics
impl Default for FontMetrics
sourcefn default() -> FontMetrics
fn default() -> FontMetrics
Returns the “default value” for a type. Read more
impl Copy for FontMetrics
Auto Trait Implementations
impl RefUnwindSafe for FontMetrics
impl Send for FontMetrics
impl Sync for FontMetrics
impl Unpin for FontMetrics
impl UnwindSafe for FontMetrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more