pub struct FontMetrics {
pub ascent: i32,
pub descent: i32,
pub xheight: i32,
pub capheight: i32,
pub slant: i32,
}Expand description
Overall font metrics in scaled points.
Fields§
§ascent: i32Distance from the baseline up to the ascender line.
descent: i32Distance from the baseline down to the descender line, positive like a TeX depth.
xheight: i32Height of a lowercase x.
capheight: i32Height of a capital letter.
slant: i32Slant as a 16.16 fixed point ratio, \fontdimen1.
Trait Implementations§
Source§impl Clone for FontMetrics
impl Clone for FontMetrics
impl Copy for FontMetrics
Source§impl Debug for FontMetrics
impl Debug for FontMetrics
Source§impl Default for FontMetrics
impl Default for FontMetrics
impl Eq for FontMetrics
Source§impl PartialEq for FontMetrics
impl PartialEq for FontMetrics
impl StructuralPartialEq for FontMetrics
Auto Trait Implementations§
impl Freeze for FontMetrics
impl RefUnwindSafe for FontMetrics
impl Send for FontMetrics
impl Sync for FontMetrics
impl Unpin for FontMetrics
impl UnsafeUnpin 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