pub struct FontVerticalMetrics {
pub ascent: f32,
pub descent: f32,
pub natural_line_height: f32,
pub line_gap: f32,
}Expand description
Vertical metrics of a font at one pixel size.
Fields§
§ascent: f32Distance from the baseline to the top of the line in pixels.
descent: f32Distance from the baseline to the bottom of the line in pixels, negative below the baseline.
natural_line_height: f32Ascent minus descent, rounded up to a whole pixel.
line_gap: f32hhea.lineGap at this size. Read only by a style that asks for
Android’s includeFontPadding; every other line box ignores it.
Trait Implementations§
Source§impl Clone for FontVerticalMetrics
impl Clone for FontVerticalMetrics
impl Copy for FontVerticalMetrics
Source§impl Debug for FontVerticalMetrics
impl Debug for FontVerticalMetrics
Source§impl PartialEq for FontVerticalMetrics
impl PartialEq for FontVerticalMetrics
impl StructuralPartialEq for FontVerticalMetrics
Auto Trait Implementations§
impl Freeze for FontVerticalMetrics
impl RefUnwindSafe for FontVerticalMetrics
impl Send for FontVerticalMetrics
impl Sync for FontVerticalMetrics
impl Unpin for FontVerticalMetrics
impl UnsafeUnpin for FontVerticalMetrics
impl UnwindSafe for FontVerticalMetrics
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