Struct printpdf::GlyphMetrics
source · pub struct GlyphMetrics {
pub width: u32,
pub height: u32,
}
Expand description
The metrics for a glyph provided by a FontData
implementation.
Fields§
§width: u32
The width of the glyph, typically the horizontal advance.
height: u32
The height of the glyph, typically the difference between the ascent and the descent.
Trait Implementations§
source§impl Clone for GlyphMetrics
impl Clone for GlyphMetrics
source§fn clone(&self) -> GlyphMetrics
fn clone(&self) -> GlyphMetrics
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 GlyphMetrics
impl Debug for GlyphMetrics
source§impl Default for GlyphMetrics
impl Default for GlyphMetrics
source§fn default() -> GlyphMetrics
fn default() -> GlyphMetrics
Returns the “default value” for a type. Read more
impl Copy for GlyphMetrics
Auto Trait Implementations§
impl RefUnwindSafe for GlyphMetrics
impl Send for GlyphMetrics
impl Sync for GlyphMetrics
impl Unpin for GlyphMetrics
impl UnwindSafe for GlyphMetrics
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