pub struct LineMetrics {
pub ascent: f32,
pub descent: f32,
pub line_gap: f32,
}Expand description
Vertical metrics of a font at some size (pixels, y down: descent is
positive below the baseline).
Fields§
§ascent: f32Distance from the top of the line box to the baseline.
descent: f32Distance from the baseline to the bottom of the line box.
line_gap: f32Extra space between lines.
Implementations§
Trait Implementations§
Source§impl Clone for LineMetrics
impl Clone for LineMetrics
impl Copy for LineMetrics
Source§impl Debug for LineMetrics
impl Debug for LineMetrics
Source§impl PartialEq for LineMetrics
impl PartialEq for LineMetrics
impl StructuralPartialEq for LineMetrics
Auto Trait Implementations§
impl Forget for LineMetrics
impl Freeze for LineMetrics
impl Move for LineMetrics
impl RefUnwindSafe for LineMetrics
impl Send for LineMetrics
impl Sync for LineMetrics
impl Unpin for LineMetrics
impl UnsafeUnpin for LineMetrics
impl UnwindSafe for LineMetrics
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