pub struct FaceMetrics {
pub upem: f64,
pub ascent: f64,
pub descent: f64,
pub line_gap: f64,
pub cap_height: f64,
pub x_height: f64,
pub stem_em: f64,
}Expand description
Typographic constants in em units (font +Y up).
Fields§
§upem: f64§ascent: f64§descent: f64§line_gap: f64§cap_height: f64§x_height: f64§stem_em: f64Trait Implementations§
Source§impl Clone for FaceMetrics
impl Clone for FaceMetrics
Source§fn clone(&self) -> FaceMetrics
fn clone(&self) -> FaceMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FaceMetrics
Auto Trait Implementations§
impl Freeze for FaceMetrics
impl RefUnwindSafe for FaceMetrics
impl Send for FaceMetrics
impl Sync for FaceMetrics
impl Unpin for FaceMetrics
impl UnsafeUnpin for FaceMetrics
impl UnwindSafe for FaceMetrics
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