Struct printpdf::FontMetrics
source · pub struct FontMetrics {
pub ascent: i16,
pub descent: i16,
pub units_per_em: u16,
}
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§
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 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