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: Number
The granularity of the coordinate grid.
clipping_ascender: Number
The point above which clipping can safely occur.
ascender: Number
The typographical ascender relative to the baseline.
cap_height: Number
The cap height relative to the baseline.
x_height: Number
The x-height relative to the baseline.
baseline: Number
The baseline.
descender: Number
The typographical descender relative to the baseline.
clipping_descender: Number
The point below which clipping can safely occur.
line_gap: Number
The 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