pub struct FaceMetrics {
pub ascent: u8,
pub descent: u8,
pub line_height: u8,
pub cap_height: u8,
pub x_height: u8,
}Expand description
Font metrics of a face in font pixels.
Fields§
§ascent: u8Rows from the top of a line to the baseline.
descent: u8Rows below the baseline used by descenders.
line_height: u8Baseline-to-baseline distance.
cap_height: u8§x_height: u8Trait 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 · 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 FaceMetrics
impl Debug for FaceMetrics
Source§impl PartialEq for FaceMetrics
impl PartialEq for FaceMetrics
impl Copy for FaceMetrics
impl Eq for FaceMetrics
impl StructuralPartialEq 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 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