pub struct FontMetrics {
pub ascent: i32,
pub descent: i32,
pub xheight: i32,
pub capheight: i32,
pub slant: i32,
}Expand description
Overall font metrics in TeX scaled point units.
Fields§
§ascent: i32Distance from baseline to top of typical ascenders.
descent: i32Distance from baseline to bottom of typical descenders (negative).
xheight: i32Height of a lowercase x.
capheight: i32Height of a capital letter.
slant: i32Italic slant as a fixed point angle.
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