pub struct Metrics {
pub granularity: 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§
§granularity: 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§
impl Copy for Metrics
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Freeze for Metrics
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