pub struct Metrics {
pub units_per_em: Number,
pub clipping_ascender: Number,
pub ascender: Number,
pub cap_height: Number,
pub x_height: Number,
pub baseline: Number,
pub descender: Number,
pub clipping_descender: Number,
pub line_gap: Number,
}Expand description
Metrics.
Fields§
§units_per_em: NumberThe granularity of the coordinate grid.
clipping_ascender: NumberThe point above which clipping can safely occur.
ascender: NumberThe typographical ascender relative to the baseline.
cap_height: NumberThe cap height relative to the baseline.
x_height: NumberThe x-height relative to the baseline.
baseline: NumberThe baseline.
descender: NumberThe typographical descender relative to the baseline.
clipping_descender: NumberThe point below which clipping can safely occur.
line_gap: NumberThe typographical line gap.
Trait Implementations§
source§impl PartialEq<Metrics> for Metrics
impl PartialEq<Metrics> for Metrics
impl Copy for Metrics
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
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